fix($rootScope): don't clear phase if $apply is re-entered
We cannot re-enter a `$apply` block while already in a `$apply` or `$digest` phase. Before this change such an invalid call to `$apply` was incorrectly clearing the phase, which meant that a second invalid `$apply` call was being allowed. Closes #12174
L
Lucas Galfaso committed
e0cf496f3cd6835db91546438def5bca1b6db4df
Parent: a5221f3
Committed by Peter Bacon Darwin <pete@bacondarwin.com>
on 7/25/2015, 7:44:08 PM