dont fail if no error events are bound
This commit is contained in:
parent
d8adee70f7
commit
129b8154fb
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ Ox.Request = (function() {
|
||||||
};
|
};
|
||||||
callback(data);
|
callback(data);
|
||||||
} else {
|
} else {
|
||||||
$element.triggerEvent('error', data);
|
$element && $element.triggerEvent('error', data);
|
||||||
}
|
}
|
||||||
pending[options.id] = false;
|
pending[options.id] = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue