From 36c1cda12a66e5b3a9d5a42778312e41879e7299 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 14 Jan 2012 16:18:26 +0530 Subject: [PATCH 1/4] turn request errors into events --- source/Ox.UI/js/Core/Ox.Request.js | 124 ++--------------------------- 1 file changed, 7 insertions(+), 117 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index 3d17a561..feaaa818 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -13,6 +13,7 @@ Ox.Request = (function() { var cache = {}, //dfd = $.Deferred(), + $element = Ox.Element(), pending = {}, requests = {}, self = { @@ -59,6 +60,10 @@ Ox.Request = (function() { }); } }, + /*@ + bindEvent bindEvent to error/authrize requests + @*/ + bindEvent: $element.bindEvent, // fixme: remove _leakCache: function() { @@ -145,39 +150,8 @@ Ox.Request = (function() { } } - /* - function debug(request) { - var $iframe = $('