Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
state will now be reloaded if `state.reloadOnSearch = false` when doing `state.go('stateName', {reload: true})`
  • Loading branch information
homerjam committed Aug 11, 2014
1 parent 8aed5da commit f8274de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
}

function shouldTriggerReload(to, from, locals, options) {
if (to === from && ((locals === from.locals && !options.reload) || (to.self.reloadOnSearch === false))) {
if (to === from && ((locals === from.locals) || (to.self.reloadOnSearch === false)) && !options.reload) {
return true;
}
}
Expand Down

0 comments on commit f8274de

Please sign in to comment.