fix remove_widget
This commit is contained in:
parent
d99f15fca1
commit
eaf63f67b3
|
@ -261,6 +261,11 @@ and HTML:
|
||||||
Changes
|
Changes
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
#### v0.2.1 (Current development version)
|
||||||
|
|
||||||
|
- fix `remove_widget` (#16)
|
||||||
|
|
||||||
|
|
||||||
#### v0.2.0 (2014-11-30)
|
#### v0.2.0 (2014-11-30)
|
||||||
|
|
||||||
- add `height` option
|
- add `height` option
|
||||||
|
|
2
dist/gridstack.min.js
vendored
2
dist/gridstack.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -490,7 +490,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
GridStack.prototype.remove_widget = function (el) {
|
GridStack.prototype.remove_widget = function (el) {
|
||||||
var node = $(el).data('_gridstack_node');
|
el = $(el);
|
||||||
|
var node = el.data('_gridstack_node');
|
||||||
this.grid.remove_node(node);
|
this.grid.remove_node(node);
|
||||||
el.remove();
|
el.remove();
|
||||||
this._update_container_height();
|
this._update_container_height();
|
||||||
|
|
Loading…
Reference in a new issue