From f7c78da4ed87b66f445fa3a3475902c5a66ffa1d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 1 Jun 2013 12:30:41 -0700 Subject: [PATCH] fixed backbone ajax differed --- UI/Mixins/backbone.ajax.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/UI/Mixins/backbone.ajax.js b/UI/Mixins/backbone.ajax.js index 360f5a8f5..cda69416f 100644 --- a/UI/Mixins/backbone.ajax.js +++ b/UI/Mixins/backbone.ajax.js @@ -9,7 +9,7 @@ var xhr = arguments[0]; //check if ajax call was made with data option - if (xhr && xhr.data && xhr.type == 'DELETE') { + if (xhr && xhr.data && xhr.type === 'DELETE') { if (xhr.url.indexOf('?') === -1) { xhr.url = xhr.url + '?' + $.param(xhr.data); } @@ -18,9 +18,6 @@ } } - if (original) { - original.apply(this, arguments); - } - + return original.apply(this, arguments); }; -}()); \ No newline at end of file +}());