Sync wrapping is not ready to be done at this level yet, removing this
code.
Showing
1 changed file
with
0 additions
and
20 deletions
... | @@ -32,20 +32,6 @@ define(function(require) { | ... | @@ -32,20 +32,6 @@ define(function(require) { |
32 | return deferred; | 32 | return deferred; |
33 | } | 33 | } |
34 | 34 | ||
35 | var authSync = function authSync(auth, origSync, method, model, options) { | ||
36 | var args = _.toArray(arguments); | ||
37 | args.shift(); | ||
38 | args.shift(); | ||
39 | var url = options.url || _.result(model, 'url'); | ||
40 | if (url) { | ||
41 | var sessionId = auth.get('sessionId'); | ||
42 | if (sessionId) { | ||
43 | options.url = url + (url.indexOf('?') == -1 ? '?' : '&') + 'sessionId=' + sessionId; | ||
44 | } | ||
45 | } | ||
46 | return origSync.apply(this, args); | ||
47 | }; | ||
48 | |||
49 | var FacebookProvider = Backbone.Model.extend({ | 35 | var FacebookProvider = Backbone.Model.extend({ |
50 | initialize: function(data, globalOptions) { | 36 | initialize: function(data, globalOptions) { |
51 | // early facebook javascript load | 37 | // early facebook javascript load |
... | @@ -266,12 +252,6 @@ define(function(require) { | ... | @@ -266,12 +252,6 @@ define(function(require) { |
266 | }; | 252 | }; |
267 | bindMethods(this, 'login', 'logout'); | 253 | bindMethods(this, 'login', 'logout'); |
268 | }, | 254 | }, |
269 | wrapSync: function(origSync) { | ||
270 | var auth = this; | ||
271 | return function() { | ||
272 | return authSync.apply(this, [auth, origSync].concat(_.toArray(arguments))); | ||
273 | }; | ||
274 | }, | ||
275 | }, { | 255 | }, { |
276 | FacebookProvider: FacebookProvider, | 256 | FacebookProvider: FacebookProvider, |
277 | FormProvider: FormProvider, | 257 | FormProvider: FormProvider, | ... | ... |
-
Please register or sign in to post a comment