collectionize
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -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); |
{ | ||
"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": { |
19927
262