aboutsummaryrefslogtreecommitdiffstats
path: root/src/deferred.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-11-07 21:14:23 +0100
committerOleg <markelog@gmail.com>2013-11-07 22:09:33 +0100
commit22120cea66ad88f83b96535416f5baab605fe530 (patch)
tree31f2ea0dd6d9f2298c5ade010dcbf9e62ade8e8e /src/deferred.js
parentbcae4270151574d077fb360fd42416587f07c686 (diff)
downloadjquery-22120cea66ad88f83b96535416f5baab605fe530.tar.gz
jquery-22120cea66ad88f83b96535416f5baab605fe530.zip
Fix some code style inconsistencies
Diffstat (limited to 'src/deferred.js')
-rw-r--r--src/deferred.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/deferred.js b/src/deferred.js
index 1c2f87e86..8dedbf74c 100644
--- a/src/deferred.js
+++ b/src/deferred.js
@@ -109,9 +109,10 @@ jQuery.extend({
return function( value ) {
contexts[ i ] = this;
values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if( values === progressValues ) {
+ if ( values === progressValues ) {
deferred.notifyWith( contexts, values );
- } else if ( !( --remaining ) ) {
+
+ } else if ( !(--remaining) ) {
deferred.resolveWith( contexts, values );
}
};