Skip to content

Commit 49dfed1

Browse files
committed
Change 'this' with $state in $state.go
Allow partial application of $state.go as in _.partial($state.go, ...)
1 parent d6b95ef commit 49dfed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
716716
*
717717
*/
718718
$state.go = function go(to, params, options) {
719-
return this.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));
719+
return $state.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));
720720
};
721721

722722
/**

0 commit comments

Comments
 (0)