clean up Ox.Request

This commit is contained in:
rolux 2011-11-30 15:49:11 +01:00
parent 8597352316
commit 86fda9f279

View file

@ -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) {
};
}();
}());