Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crashing $nodesScope.$modelValue.length watch #574

Merged
merged 4 commits into from
Aug 31, 2015

Conversation

jbrowning
Copy link
Contributor

Ensure that the uiTree directive's $nodesScope.$modelValue.length watch returns a number. This fixes an issue where $nodeScope will sometimes become undefined if the underlying data structure is modified outside of angular-ui-tree. This would result in a TypeError: Cannot read property '$modelValue' of null.

This fixes an issue where $nodeScope will sometimes become undefined if
the underlying data structure is modified outside of angular-ui-tree.
This would result in a "TypeError: Cannot read property '$modelValue' of
null".
Otherwise, jasmine functions such as spyOn() are erroneously marked as
undefined.
Voles pushed a commit that referenced this pull request Aug 31, 2015
Fix crashing $nodesScope.$modelValue.length watch
@Voles Voles merged commit 7e45a77 into angular-ui-tree:master Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants