dont fail if no error events are bound

This commit is contained in:
j 2012-01-21 20:45:31 +05:30
parent d8adee70f7
commit 129b8154fb

View file

@ -185,7 +185,7 @@ Ox.Request = (function() {
};
callback(data);
} else {
$element.triggerEvent('error', data);
$element && $element.triggerEvent('error', data);
}
pending[options.id] = false;
}