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 042e51e731942ee48563e1caccd75d9ce226cf9d
Showing with 3 additions and 3 deletions.
  1. +3 −3 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" ) {

0 comments on commit 042e51e

Please sign in to comment.
You can’t perform that action at this time.