Skip to content
Browse files

BUG suppress "abort" ajax exception

  • Loading branch information...
1 parent 3f49085 commit a8a6908f4050c5cfa76165f909d9c9db02b711b1 @michalochman committed Aug 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 features/bootstrap/SilverStripe/Test/Behaviour/BasicContext.php
View
1 features/bootstrap/SilverStripe/Test/Behaviour/BasicContext.php
@@ -63,6 +63,7 @@ public function appendErrorHandlerBeforeStep(StepEvent $event)
}
if ('undefined' !== typeof window.jQuery) {
window.jQuery('body').ajaxError(function(event, jqxhr, settings, exception) {
+ if ('abort' === exception) return;
window.onerror(event.type + ': ' + settings.type + ' ' + settings.url + ' ' + exception);
});
}

0 comments on commit a8a6908

Please sign in to comment.
Something went wrong with that request. Please try again.