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