Skip to content

Commit 8828f68

Browse files
authored
Merge pull request #2609 from adumesny/master
fixed Gridstack.off() signature
2 parents bb7f3b1 + a691bb3 commit 8828f68

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)