We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f96d70 commit a691bb3Copy full SHA for a691bb3
src/gridstack.ts
@@ -1162,11 +1162,10 @@ export class GridStack {
1162
}
1163
1164
/**
1165
- * unsubscribe from the 'on' event below
1166
- * @param name of the event (see possible values)
+ * unsubscribe from the 'on' event GridStackEvent
+ * @param name of the event (see possible values) or list of names space separated
1167
*/
1168
- public off(name: GridStackEvent): GridStack
1169
- public off(name: string): GridStack {
+ public off(name: GridStackEvent | string): GridStack {
1170
// check for array of names being passed instead
1171
if (name.indexOf(' ') !== -1) {
1172
let names = name.split(' ') as GridStackEvent[];
0 commit comments