clean up Ox.Request
This commit is contained in:
parent
8597352316
commit
86fda9f279
1 changed files with 6 additions and 6 deletions
|
@ -9,18 +9,18 @@ options <o> Options object
|
||||||
url <s> request url
|
url <s> request url
|
||||||
@*/
|
@*/
|
||||||
|
|
||||||
Ox.Request = function(options) {
|
Ox.Request = (function() {
|
||||||
|
|
||||||
var cache = {},
|
var cache = {},
|
||||||
//dfd = $.Deferred(),
|
//dfd = $.Deferred(),
|
||||||
pending = {},
|
pending = {},
|
||||||
requests = {},
|
requests = {},
|
||||||
self = {
|
self = {
|
||||||
options: Ox.extend({
|
options: {
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '/api/'
|
url: '/api/'
|
||||||
}, options)
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -71,8 +71,8 @@ Ox.Request = function(options) {
|
||||||
(options) -> <o> set options
|
(options) -> <o> set options
|
||||||
options <o> Options Object
|
options <o> Options Object
|
||||||
@*/
|
@*/
|
||||||
options: function(options) {
|
options: function() {
|
||||||
return Ox.getset(self.options, options, function() {}, this);
|
return Ox.getset(self.options, arguments, function() {}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
@ -303,4 +303,4 @@ Ox.Request = function(options) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}();
|
}());
|
||||||
|
|
Loading…
Reference in a new issue