50c2625b by Adam Heath

Move wrapSync from a class method to the instance.

1 parent 071509ee
...@@ -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 });
......