diff options
| author | Misko Hevery | 2010-01-24 19:12:01 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-01-24 19:12:01 -0800 |
| commit | a5c446441fee005975a82885771e8d931e7a4e7a (patch) | |
| tree | 5f998901d0abd1be01dd2dd656619b7b051d2cc3 /src/Users.js | |
| parent | efad9ec5be8da442af5fb3dffc08510f7a71e10f (diff) | |
| download | angular.js-a5c446441fee005975a82885771e8d931e7a4e7a.tar.bz2 | |
fix closure compiler incompatibilities
Diffstat (limited to 'src/Users.js')
| -rw-r--r-- | src/Users.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Users.js b/src/Users.js index 79ed3129..f81507f4 100644 --- a/src/Users.js +++ b/src/Users.js @@ -3,7 +3,7 @@ function Users(server, controlBar) { this.controlBar = controlBar; }; -Users.prototype = { +extend(Users.prototype, { 'fetchCurrentUser':function(callback) { var self = this; this.server.request("GET", "/account.json", {}, function(code, response){ @@ -23,7 +23,7 @@ Users.prototype = { 'login': function(callback) { var self = this; this.controlBar.login(function(){ - self.fetchCurrentUser(function(){ + self['fetchCurrentUser'](function(){ (callback||noop)(); }); }); @@ -32,4 +32,4 @@ Users.prototype = { 'notAuthorized': function(){ this.controlBar.notAuthorized(); } -}; +}); |
