Skip to content

Commit e0039eb

Browse files
committed
Building dist with the new logout and loggedOut broadcasted events
1 parent 291b043 commit e0039eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dist/oauth-ng.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* oauth-ng - v0.2.8 - 2014-10-26 */
1+
/* oauth-ng - v0.2.8 - 2014-10-28 */
22

33
'use strict';
44

@@ -365,6 +365,7 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
365365

366366
scope.logout = function() {
367367
AccessToken.destroy(scope);
368+
$rootScope.$broadcast('oauth:logout');
368369
loggedOut();
369370
};
370371

@@ -376,7 +377,7 @@ directives.directive('oauth', function(AccessToken, Endpoint, Profile, $location
376377

377378
// set the oauth directive to the logged-out status
378379
var loggedOut = function() {
379-
$rootScope.$broadcast('oauth:logout');
380+
$rootScope.$broadcast('oauth:loggedOut');
380381
scope.show = 'logged-out';
381382
};
382383

0 commit comments

Comments
 (0)