collectionize
Advanced tools
+3
-5
@@ -64,5 +64,4 @@ (function () { | ||
| } | ||
| arr.splice(newIndex, 0, arr.splice(oldIndex, 1)[0]); | ||
| return arr; | ||
| } | ||
@@ -149,3 +148,3 @@ | ||
| self.move = function (oldIndex, newIndex) { | ||
| self.db = arrayMove(self.db, oldIndex, newIndex); | ||
| arrayMove(self.db, oldIndex, newIndex); | ||
| self.trigger('moved'); | ||
@@ -190,4 +189,3 @@ }; | ||
| self.remove = function (query) { | ||
| var removed = self.filter(query); | ||
| self.db = self.reject(query); | ||
| var removed = _.remove(self.db, query); | ||
| nativeEach(removed, function (obj) { | ||
@@ -194,0 +192,0 @@ self.trigger('removed', obj); |
+1
-1
| { | ||
| "name": "collectionize", | ||
| "description": "A lightweight JS model/collection library.", | ||
| "version": "0.3.2", | ||
| "version": "0.3.3", | ||
| "repository": "https://github.com/andrewchilds/collectionize.git", | ||
@@ -6,0 +6,0 @@ "author": { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
19927
-0.28%262
-0.76%