From 86fda9f279e31ec6db63f4e9bc3c7803b8c4eaed Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 30 Nov 2011 15:49:11 +0100 Subject: [PATCH] clean up Ox.Request --- source/Ox.UI/js/Core/Ox.Request.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) { }; -}(); +}());