jquery ajax: changing a set of &&/|| for ?/:.

This commit is contained in:
Ariel Flesler 2008-05-25 03:20:13 +00:00
parent 3c5c3dffaa
commit 042e51e731

View file

@ -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" ) {