ember-cli-simple-store
Advanced tools
Comparing version
@@ -46,3 +46,5 @@ import Ember from "ember"; | ||
this.scheduleUpdate(type); | ||
Ember.run.once(() => { | ||
this.scheduleUpdate(type); | ||
}); | ||
}, | ||
@@ -55,3 +57,5 @@ remove: function(type, id) { | ||
this.scheduleUpdate(type); | ||
Ember.run.once(() => { | ||
this.scheduleUpdate(type); | ||
}); | ||
} | ||
@@ -67,3 +71,5 @@ }, | ||
this.scheduleUpdate(type); | ||
Ember.run.once(() => { | ||
this.scheduleUpdate(type); | ||
}); | ||
@@ -75,3 +81,3 @@ return record; | ||
recompute.push(type); | ||
Ember.run.scheduleOnce("afterRender", this, "updateFilters"); | ||
Ember.run.scheduleOnce("actions", this, "updateFilters"); | ||
}, | ||
@@ -97,2 +103,4 @@ updateFilters: function() { | ||
if (options instanceof Function) { | ||
// var computed_keys = arguments[2] || []; | ||
// Ember.deprecate("find with filter no longer requires an array of computed keys", computed_keys); | ||
return this._findWithFilterFunc(type, options); | ||
@@ -99,0 +107,0 @@ } |
{ | ||
"name": "ember-cli-simple-store", | ||
"version": "4.0.0-beta.2", | ||
"version": "4.0.0-beta.3", | ||
"description": "ember-cli addon that provides a simple identity map for ember.js web applications", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -61,3 +61,3 @@ # ember-cli-simple-store | ||
} | ||
store.find("person", filter); | ||
store.find("person", filter, ["salary", "name"]); | ||
``` | ||
@@ -64,0 +64,0 @@ |
35460
0.95%389
2.1%