update dist

This commit is contained in:
Pavel Reznikov 2016-02-24 20:11:41 -08:00
commit 440025b375
3 changed files with 10 additions and 7 deletions

11
dist/gridstack.js vendored
View file

@ -335,12 +335,15 @@
return node;
};
GridStackEngine.prototype.removeNode = function(node) {
GridStackEngine.prototype.removeNode = function(node, detachNode) {
detachNode = typeof detachNode === 'undefined' ? true : detachNode;
this._removedNodes.push(_.clone(node));
node._id = null;
this.nodes = _.without(this.nodes, node);
this._packNodes();
this._notify(node);
if (detachNode) {
this._notify(node);
}
};
GridStackEngine.prototype.canMoveNode = function(node, x, y, width, height) {
@ -1083,7 +1086,7 @@
node = this.grid.getNodeDataByDOMEl(el);
}
this.grid.removeNode(node);
this.grid.removeNode(node, detachNode);
el.removeData('_gridstack_node');
this._updateContainerHeight();
if (detachNode) {
@ -1105,7 +1108,7 @@
$(window).off('resize', this.onResizeHandler);
this.disable();
if (typeof detachGrid != 'undefined' && !detachGrid) {
this.removeAll(true);
this.removeAll(false);
} else {
this.container.remove();
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long