I have a controller which observes a property (array), and every time it changes, calls an expensive function on the server, then displays the result.
In the initial controller setup (in the route), I need to loop through the array and set some of the values - i.e.
something.forEach(function(el) { myArrayProperty.set(el.id, true); });
This is firing the observer on every loop through the forEach. How can I loop through the forEach, update all the elements, and THEN allow the Ember observer to fire?
I've tried scheduleOnce and Ember.run(function() {..}) but I can't quite seem to get it working.
Thanks!