git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edf3a2
)
Help to squelch unnecessary Mozilla exceptions.
author
John Resig
<jeresig@gmail.com>
Tue, 4 Jul 2006 01:23:18 +0000
(
01:23
+0000)
committer
John Resig
<jeresig@gmail.com>
Tue, 4 Jul 2006 01:23:18 +0000
(
01:23
+0000)
ajax/ajax.js
patch
|
blob
|
history
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
af80810
..
f6a1d9e
100644
(file)
--- a/
ajax/ajax.js
+++ b/
ajax/ajax.js
@@
-170,9
+170,12
@@
jQuery.ajax.active = 0;
// Determines if an XMLHttpRequest was successful or not
jQuery.httpSuccess = function(r) {
- return r.status ?
- ( r.status >= 200 && r.status < 300 ) || r.status == 304 :
- location.protocol == "file:";
+ try {
+ return r.status ?
+ ( r.status >= 200 && r.status < 300 ) || r.status == 304 :
+ location.protocol == "file:";
+ } catch(e){}
+ return false;
};
// Get the data out of an XMLHttpRequest.