|
1 | 1 | /**visor |
2 | 2 | * Angular authentication and authorization library |
3 | | -* @version v0.0.2 |
| 3 | +* @version v0.0.3 |
4 | 4 | * @link https://github.com/illniyar/visor |
5 | 5 | * @license MIT License, http://www.opensource.org/licenses/MIT |
6 | 6 | */ |
@@ -44,7 +44,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex |
44 | 44 | }; |
45 | 45 | function addPromise(promise){ |
46 | 46 | unfinishedPromises++; |
47 | | - promise.finally(checkPromises); |
| 47 | + promise["finally"](checkPromises); |
48 | 48 | } |
49 | 49 | var unlisten = $rootScope.$on("$locationChangeStart",function(e,toUrl,fromUrl){ |
50 | 50 | changeStarted = true; |
@@ -422,7 +422,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex |
422 | 422 | _authenticationPromise = deferred.promise; |
423 | 423 | $injector.invoke(config.authenticate) |
424 | 424 | .then(onAuthenticationSuccess,onAuthenticationFailed) |
425 | | - .finally(function(){ |
| 425 | + ["finally"](function(){ |
426 | 426 | deferred.resolve(Visor.authData) |
427 | 427 | }); |
428 | 428 | return deferred.promise; |
@@ -572,7 +572,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex |
572 | 572 | $q.all(config.doBeforeFirstCheck.map(function(cb){ |
573 | 573 | return $injector.invoke(cb) |
574 | 574 | })) |
575 | | - .finally(function(){ |
| 575 | + ["finally"](function(){ |
576 | 576 | finishedBeforeCheck = true; |
577 | 577 | if (handlePermission(next,permissions)) { |
578 | 578 | waitForMe.resolve(true); |
|
0 commit comments