collectionize
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -134,5 +134,3 @@ (function () { | ||
self.db[self.db.length] = obj; | ||
if (obj && obj.id) { | ||
self.idIndex[obj.id + ''] = obj; | ||
} | ||
_addToIndex(obj); | ||
self.trigger('added', obj); | ||
@@ -190,3 +188,5 @@ | ||
function _resetIndex() { | ||
self.idIndex = {}; | ||
nativeEach(self.idIndex, function (v, k) { | ||
self.idIndex[k] = null; | ||
}); | ||
self.each(function (obj) { | ||
@@ -193,0 +193,0 @@ _addToIndex(obj); |
{ | ||
"name": "collectionize", | ||
"description": "A lightweight JS model/collection library.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "https://github.com/andrewchilds/collectionize.git", | ||
@@ -6,0 +6,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19372