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

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

Last paragraph in this section explains this behavior.

1 Like