Skip to content

Commit

Permalink
Fix issue calling a method from this.node when it's null
Browse files Browse the repository at this point in the history
  • Loading branch information
rev087 committed Apr 29, 2014
1 parent 8914386 commit d61e398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ng-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
}

// Label ng-repeat items
if (this.node.getAttribute('ng-repeat')) {
if (this.node && this.node.getAttribute('ng-repeat')) {
this.addAssociation('ngRepeat', true);
}

Expand Down

0 comments on commit d61e398

Please sign in to comment.