angular/angular.js — pull request #8849 by shahata (2014-08-29 20:37:23+00:00)
Title: fix(ngEventDirs): check `scope.$$phase` only on `$rootScope`

Checking `scope.$$phase` is dangerous since it does not work on isolated scopes. It exists only on `$rootScope`, and isolated scopes do not inherit it.