diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index c704cec3..c117118a 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -9,18 +9,18 @@ options Options object url 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) -> set options options 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) { }; -}(); +}());