Skip to content
Permalink
Browse files
jquery ajax: changing a set of &&/|| for ?/:.
  • Loading branch information
flesler committed May 25, 2008
1 parent 3c5c3df commit 042e51e
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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" ) {

0 comments on commit 042e51e

Please sign in to comment.