Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngEventDirs): check scope.$$phase only on $rootScope #8849

Closed
wants to merge 2 commits into from
Closed

fix(ngEventDirs): check scope.$$phase only on $rootScope #8849

wants to merge 2 commits into from

Conversation

shahata
Copy link
Contributor

@shahata shahata commented Aug 29, 2014

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.

@Narretz
Copy link
Contributor

Narretz commented Sep 1, 2014

Didn't know that one. Is it possible to show that in a test?

@Narretz Narretz added this to the 1.3.0-rc.1 milestone Sep 1, 2014
@shahata
Copy link
Contributor Author

shahata commented Sep 1, 2014

I already am showing it in the test...

@tbosch
Copy link
Contributor

tbosch commented Sep 2, 2014

@shahata Thanks for catching this!

@tbosch tbosch mentioned this pull request Sep 2, 2014
tbosch pushed a commit that referenced this pull request Sep 2, 2014
tbosch pushed a commit that referenced this pull request Sep 2, 2014
@tbosch
Copy link
Contributor

tbosch commented Sep 2, 2014

Landed in master via 203ea10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants