134d45a2 by Adam Heath

Sync wrapping is not ready to be done at this level yet, removing this

code.
1 parent 4eabaeee
......@@ -32,20 +32,6 @@ define(function(require) {
return deferred;
}
var authSync = function authSync(auth, origSync, method, model, options) {
var args = _.toArray(arguments);
args.shift();
args.shift();
var url = options.url || _.result(model, 'url');
if (url) {
var sessionId = auth.get('sessionId');
if (sessionId) {
options.url = url + (url.indexOf('?') == -1 ? '?' : '&') + 'sessionId=' + sessionId;
}
}
return origSync.apply(this, args);
};
var FacebookProvider = Backbone.Model.extend({
initialize: function(data, globalOptions) {
// early facebook javascript load
......@@ -266,12 +252,6 @@ define(function(require) {
};
bindMethods(this, 'login', 'logout');
},
wrapSync: function(origSync) {
var auth = this;
return function() {
return authSync.apply(this, [auth, origSync].concat(_.toArray(arguments)));
};
},
}, {
FacebookProvider: FacebookProvider,
FormProvider: FormProvider,
......