ember-cli-simple-store
Advanced tools
Comparing version 4.0.0-beta.4 to 4.0.0-beta.5
@@ -101,3 +101,3 @@ import Ember from "ember"; | ||
// Ember.deprecate("find with filter no longer requires an array of computed keys", computed_keys); | ||
return this._findWithFilterFunc(type, options, true); | ||
return this._findWithFilterFunc(type, options); | ||
} | ||
@@ -140,13 +140,3 @@ if (typeof options === "object") { | ||
}, | ||
_findWithFilterFunc: function(type, filter_func, cache) { | ||
var filtersMap = this.get("filtersMap"); | ||
var filters = filtersMap[type] || []; | ||
if(cache) { | ||
var exists = filters.filter(function(fn) { | ||
return fn.filter_func.toString() === filter_func.toString(); | ||
})[0]; | ||
if(exists) { | ||
return exists; | ||
} | ||
} | ||
_findWithFilterFunc: function(type, filter_func) { | ||
var func = Ember.ArrayProxy.extend({ | ||
@@ -173,2 +163,4 @@ push: function(type, data) { | ||
}); | ||
var filtersMap = this.get("filtersMap"); | ||
var filters = filtersMap[type] || []; | ||
filters.push(func); | ||
@@ -175,0 +167,0 @@ filtersMap[type] = filters; |
{ | ||
"name": "ember-cli-simple-store", | ||
"version": "4.0.0-beta.4", | ||
"version": "4.0.0-beta.5", | ||
"description": "ember-cli addon that provides a simple identity map for ember.js web applications", | ||
@@ -5,0 +5,0 @@ "directories": { |
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
35460
389