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
|
||||
@*/
|
||||
|
||||
Ox.Request = function(options) {
|
||||
Ox.Request = (function() {
|
||||
|
||||
var cache = {},
|
||||
//dfd = $.Deferred(),
|
||||
pending = {},
|
||||
requests = {},
|
||||
self = {
|
||||
options: Ox.extend({
|
||||
options: {
|
||||
timeout: 60000,
|
||||
type: 'POST',
|
||||
url: '/api/'
|
||||
}, options)
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
@ -71,8 +71,8 @@ Ox.Request = function(options) {
|
|||
(options) -> <o> set options
|
||||
options <o> Options Object
|
||||
@*/
|
||||
options: function(options) {
|
||||
return Ox.getset(self.options, options, function() {}, this);
|
||||
options: function() {
|
||||
return Ox.getset(self.options, arguments, function() {}, this);
|
||||
},
|
||||
|
||||
/*@
|
||||
|
@ -303,4 +303,4 @@ Ox.Request = function(options) {
|
|||
|
||||
};
|
||||
|
||||
}();
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue