From 342b25d9cc393d2c12f2a58cf4e456c4c6715ccb Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 20 Oct 2011 14:58:45 +0000 Subject: [PATCH] debug Ox.Request --- source/Ox.UI/js/Core/Ox.Request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index 8c6b6f12..084d362f 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -197,8 +197,8 @@ Ox.Request = function(options) { } } } - if (data.status.code < 500) { - Ox.print('ERROR CODE < 500', data) + if (data.status.code && data.status.code < 500) { + // 0 is timeout callback(data); } else { var $dialog = Ox.Dialog({