Multiple observers on same property


#1

Hi, I have an controller called Base which defines a property that observe a service property. Then I have seven controllers that extends this base controller.

The problem is that if I initialized let’s say two controllers by accessing theirs routes, the observer will trigger twice. If I initialize three controllers observer will trigger three times etc…

Is possible to force observer to run single time. I’ve tried debounce. not working.


#2

Fixed by adding a title in each controller and execute the function only if active controller is the same with the property set and added Ember.run.throttle.