public/javascripts/ajax.js in ajax-1.1.6 vs public/javascripts/ajax.js in ajax-1.1.7

- old
+ new

@@ -680,13 +680,15 @@ * * Stop watching the mouse position. */ self.hideLoadingImage = function() { // check if a new request has already started - if (self.current_request && self.current_request.status == 0) { - console.log("[ajax] aborting hideLoadingImage.. "); - return; - } + try { + if (self.current_request && self.current_request.status == 0) { + console.log("[AJAX] aborting hideLoadingImage.. "); + return; + } + } catch(e) {} if (!self.show_loading_image) { return; } if (!self.hide_loading_image_callback) { $(document).unbind('mousemove', self.updateImagePosition); $(self.loading_image).hide(); } else { \ No newline at end of file