request controller: minor cleanup
This commit is contained in:
parent
abb76703ce
commit
c03efd71fe
1 changed files with 1 additions and 4 deletions
|
@ -12,7 +12,6 @@ Ox.Request <o> 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;
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue