diff --git a/source/Ox.UI/js/Core/Request.js b/source/Ox.UI/js/Core/Request.js index 0dfa51b4..fc91c449 100644 --- a/source/Ox.UI/js/Core/Request.js +++ b/source/Ox.UI/js/Core/Request.js @@ -12,7 +12,6 @@ Ox.Request Basic request controller Ox.Request = (function() { var cache = {}, - //dfd = $.Deferred(), $element, pending = {}, requests = {}, @@ -181,7 +180,7 @@ Ox.Request = (function() { }; } } - if (data.status.code == 200 || data.status.code == 404 || data.status.code == 409) { + if (Ox.contains([200, 404, 409], data.status.code)) { // we have to include not found and conflict // so that handlers can handle these cases cache[req] = { @@ -195,8 +194,6 @@ Ox.Request = (function() { pending[options.id] = false; } - // return dfd.promise(); - return options.id; },