File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,22 +92,22 @@ function($middlewareProvider)] {
92
92
/** It will wait for async requests too! */
93
93
' async-auth' : [' $http' , function asyncAuth ($http ) {
94
94
// We'll need access to "this" in a deeper context
95
- var self = this ;
95
+ var request = this ;
96
96
97
97
// Grab something from the server
98
98
$http .get (' /verify' )
99
99
100
100
// The server has responded!
101
101
.then (function success (res ) {
102
102
if ( res .isVerified ) {
103
- return self .next ();
103
+ return request .next ();
104
104
}
105
105
106
- self .redirectTo (' another-state-or-path' );
106
+ request .redirectTo (' another-state-or-path' );
107
107
},
108
108
109
109
function fail (err ) {
110
- self .redirectTo (' another-state-or-path' );
110
+ request .redirectTo (' another-state-or-path' );
111
111
});
112
112
}]
113
113
You can’t perform that action at this time.
0 commit comments