Observer fires even-though the dependency's value did not change


#1

Consider the following:

someProperty: function() {
  return 'constant value';
}.propert('someDependency');

someObserver: function() {
  console.log('here');
}.observes('someProperty');

Since ‘someProperty’ always returns the same value, I expected the observer to be called only once.

However apparently the observer will fire every time ‘someDependency’ changes.

Is this the expected behavior? What is the rational behind it?

Thanks


#2

http://emberjs.com/api/classes/Ember.Observable.html#toc_observing-property-changes

Last paragraph in this section explains this behavior.