Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFix exception when GROUPS_CHANGED event is broadcast during route load #2688
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
LGTM. |
added a commit
that referenced
this pull request
Oct 29, 2015
nickstenning
merged commit 65e3985
into
hypothesis:master
Oct 29, 2015
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
robertknight commentedOct 29, 2015
The directive attempted to update itself in
response to a group change notification without triggering
a full digest cycle by using
$scope.$apply.This was based on the incorrect understanding that $apply only
dirty-checks the current scope downwards. In fact, in dirty-checks
the root scope. Additionally, the logic was pointless since
group list/focus changes happen in response to two types of events,
both of which are triggered in the context of $apply:
is received.