Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80c60ac

Browse files
committed
update gridstack.js
1 parent e7aad78 commit 80c60ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gridstack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@
490490
};
491491

492492
GridStack.prototype.remove_widget = function (el) {
493-
var node = $(el).data('_gridstack_node');
493+
el = $(el);
494+
var node = el.data('_gridstack_node');
494495
this.grid.remove_node(node);
495496
el.remove();
496497
this._update_container_height();

0 commit comments

Comments
 (0)