jquery ajax: changing a set of &&/|| for ?/:.
This commit is contained in:
parent
3c5c3dffaa
commit
042e51e731
|
@ -327,9 +327,9 @@ jQuery.extend({
|
||||||
ival = null;
|
ival = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = isTimeout == "timeout" && "timeout" ||
|
status = isTimeout == "timeout" ? "timeout" :
|
||||||
!jQuery.httpSuccess( xhr ) && "error" ||
|
!jQuery.httpSuccess( xhr ) ? "error" :
|
||||||
s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
|
s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
|
||||||
"success";
|
"success";
|
||||||
|
|
||||||
if ( status == "success" ) {
|
if ( status == "success" ) {
|
||||||
|
|
Loading…
Reference in a new issue