Skip to content

Commit a691bb3

Browse files
committed
fixed Gridstack.off() signature
1 parent 0f96d70 commit a691bb3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/gridstack.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,11 +1162,10 @@ export class GridStack {
11621162
}
11631163

11641164
/**
1165-
* unsubscribe from the 'on' event below
1166-
* @param name of the event (see possible values)
1165+
* unsubscribe from the 'on' event GridStackEvent
1166+
* @param name of the event (see possible values) or list of names space separated
11671167
*/
1168-
public off(name: GridStackEvent): GridStack
1169-
public off(name: string): GridStack {
1168+
public off(name: GridStackEvent | string): GridStack {
11701169
// check for array of names being passed instead
11711170
if (name.indexOf(' ') !== -1) {
11721171
let names = name.split(' ') as GridStackEvent[];

0 commit comments

Comments
 (0)