mirror of
https://github.com/jquery/jquery.git
synced 2026-01-27 02:57:56 -05:00
jquery ajax: changing a set of &&/|| for ?/:.
This commit is contained in:
@@ -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" ) {
|
||||
|
||||
Reference in New Issue
Block a user