From: Ariel Flesler Date: Sun, 25 May 2008 03:20:13 +0000 (+0000) Subject: jquery ajax: changing a set of &&/|| for ?/:. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=042e51e731942ee48563e1caccd75d9ce226cf9d;p=jquery.git jquery ajax: changing a set of &&/|| for ?/:. --- diff --git a/src/ajax.js b/src/ajax.js index a0c80af..3e43ffb 100644 --- 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" ) {