aurelia-gridstack
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -32,2 +32,4 @@ define(["require", "exports", "tslib", "aurelia-dependency-injection", "aurelia-pal", "aurelia-templating", "aurelia-typed-observable-plugin", "gridstack"], function (require, exports, tslib_1, aurelia_dependency_injection_1, aurelia_pal_1, aurelia_templating_1, aurelia_typed_observable_plugin_1, gs) { | ||
} | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
var newItems = this.items.map(function (x) { return x.root; }).filter(function (x) { return !x.gridstackNode; }); | ||
@@ -40,4 +42,2 @@ newItems.forEach(function (x) { | ||
}); | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
}; | ||
@@ -44,0 +44,0 @@ GridStack.prototype.attached = function () { |
@@ -36,2 +36,4 @@ "use strict"; | ||
} | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
var newItems = this.items.map(function (x) { return x.root; }).filter(function (x) { return !x.gridstackNode; }); | ||
@@ -44,4 +46,2 @@ newItems.forEach(function (x) { | ||
}); | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
}; | ||
@@ -48,0 +48,0 @@ GridStack.prototype.attached = function () { |
@@ -32,2 +32,4 @@ import { __decorate, __metadata } from "tslib"; | ||
} | ||
const removed = this.grid.engine.nodes.filter(x => !this.items.find(y => y.root === x.el)); | ||
removed.forEach(x => this.grid.engine.removeNode(x, false, false)); | ||
const newItems = this.items.map(x => x.root).filter(x => !x.gridstackNode); | ||
@@ -40,4 +42,2 @@ newItems.forEach(x => { | ||
}); | ||
const removed = this.grid.engine.nodes.filter(x => !this.items.find(y => y.root === x.el)); | ||
removed.forEach(x => this.grid.engine.removeNode(x, false, false)); | ||
} | ||
@@ -44,0 +44,0 @@ attached() { |
@@ -33,2 +33,4 @@ import { __decorate, __metadata } from "tslib"; | ||
} | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
var newItems = this.items.map(function (x) { return x.root; }).filter(function (x) { return !x.gridstackNode; }); | ||
@@ -41,4 +43,2 @@ newItems.forEach(function (x) { | ||
}); | ||
var removed = this.grid.engine.nodes.filter(function (x) { return !_this.items.find(function (y) { return y.root === x.el; }); }); | ||
removed.forEach(function (x) { return _this.grid.engine.removeNode(x, false, false); }); | ||
}; | ||
@@ -45,0 +45,0 @@ GridStack.prototype.attached = function () { |
{ | ||
"name": "aurelia-gridstack", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet