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:
3c5c3df
)
jquery ajax: changing a set of &&/|| for ?/:.
author
Ariel Flesler
<aflesler@gmail.com>
Sun, 25 May 2008 03:20:13 +0000
(
03:20
+0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Sun, 25 May 2008 03:20:13 +0000
(
03:20
+0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
a0c80af
..
3e43ffb
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-327,9
+327,9
@@
jQuery.extend({
ival = null;
}
- status = isTimeout == "timeout" && "timeout" ||
- !jQuery.httpSuccess( xhr ) && "error" ||
- s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
+ status = isTimeout == "timeout" ? "timeout" :
+ !jQuery.httpSuccess( xhr ) ? "error" :
+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
"success";
if ( status == "success" ) {