After initial values, $onChanges is called with an incorrect this
#15268
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
$onChanges is being called with an incorrect this after the initial value changes.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).
http://plnkr.co/edit/WbpIZLsDfmqjmMvXa3Hp?p=preview
What is the expected behavior?
They should be called with the same this.
What is the motivation / use case for changing the behavior?
To give it more consistent expected behavior.
Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.
I am only aware of 1.5.9 being broken, though previous iterations might be too.
Chrome is affected.
Other information (e.g. stacktraces, related issues, suggestions how to fix)
None.