Move wrapSync from a class method to the instance.
Showing
1 changed file
with
5 additions
and
4 deletions
... | @@ -265,14 +265,15 @@ define(function(require) { | ... | @@ -265,14 +265,15 @@ define(function(require) { |
265 | }; | 265 | }; |
266 | bindMethods(this, 'login', 'logout'); | 266 | bindMethods(this, 'login', 'logout'); |
267 | }, | 267 | }, |
268 | }, { | 268 | wrapSync: function(origSync) { |
269 | FacebookProvider: FacebookProvider, | 269 | var auth = this; |
270 | FormProvider: FormProvider, | ||
271 | wrapSync: function(auth, origSync) { | ||
272 | return function() { | 270 | return function() { |
273 | return authSync.apply(this, [auth, origSync].concat(_.toArray(arguments))); | 271 | return authSync.apply(this, [auth, origSync].concat(_.toArray(arguments))); |
274 | }; | 272 | }; |
275 | }, | 273 | }, |
274 | }, { | ||
275 | FacebookProvider: FacebookProvider, | ||
276 | FormProvider: FormProvider, | ||
276 | }); | 277 | }); |
277 | return Auth; | 278 | return Auth; |
278 | }); | 279 | }); | ... | ... |
-
Please register or sign in to post a comment