debug Ox.Request

This commit is contained in:
rlx 2011-10-20 14:58:45 +00:00
parent a01926be4d
commit 342b25d9cc

View file

@ -197,8 +197,8 @@ Ox.Request = function(options) {
} }
} }
} }
if (data.status.code < 500) { if (data.status.code && data.status.code < 500) {
Ox.print('ERROR CODE < 500', data) // 0 is timeout
callback(data); callback(data);
} else { } else {
var $dialog = Ox.Dialog({ var $dialog = Ox.Dialog({