Skip to content

Commit

Permalink
Merge pull request #1361 from angular-ui/issue-1314
Browse files Browse the repository at this point in the history
fix(uiSref): Check that state is defined in isMatch()
  • Loading branch information
christopherthielen committed Sep 12, 2014
2 parents 64b9bea + 92aebc7 commit 0a9aa0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stateDirectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function $StateRefActiveDirective($state, $stateParams, $interpolate) {
if (typeof $attrs.uiSrefActiveEq !== 'undefined') {
return $state.$current.self === state && matchesParams();
} else {
return $state.includes(state.name) && matchesParams();
return state && $state.includes(state.name) && matchesParams();
}
}

Expand Down

0 comments on commit 0a9aa0c

Please sign in to comment.