]> source.dussan.org Git - jquery.git/commitdiff
Build: code style fixes
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 22 Dec 2015 17:21:49 +0000 (20:21 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 22 Dec 2015 17:21:49 +0000 (20:21 +0300)
src/core.js
src/css.js
src/effects.js

index 60291a5f07b8bed74d539cc5e1fbd6275a225d69..b7425d277c89b5f2d249dbaf610d14c9a611fe0a 100644 (file)
@@ -295,7 +295,11 @@ jQuery.extend( {
                        // We use an anonymous function so that context is window
                        // rather than jQuery in Firefox
                        ( window.execScript || function( data ) {
+
+                               // jscs:disable
                                window[ "eval" ].call( window, data );
+                               // jscs:enable
+
                        } )( data );
                }
        },
index 5041923075ca8169055d9141707042220d83b463..b48fe0a3b3d47ae2e787ec4be07141aa7e8f5090 100644 (file)
@@ -93,7 +93,8 @@ function showHide( elements, show ) {
                        // in a stylesheet to whatever the default browser style is
                        // for such an element
                        if ( elem.style.display === "" && isHidden( elem ) ) {
-                               values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay( elem.nodeName ) );
+                               values[ index ] =
+                                       jQuery._data( elem, "olddisplay", defaultDisplay( elem.nodeName ) );
                        }
                } else {
                        hidden = isHidden( elem );
index f005fe204d2c1d477c509d6ef53be08e209f9e5b..1241a2f99a9a8ab21634ec23e80b210c57112be4 100644 (file)
@@ -15,7 +15,8 @@ define( [
        "./css",
        "./deferred",
        "./traversing"
-], function( jQuery, document, rcssNum, rnotwhite, cssExpand, isHidden, adjustCSS, defaultDisplay ) {
+], function( jQuery, document, rcssNum, rnotwhite, cssExpand,
+       isHidden, adjustCSS, defaultDisplay ) {
 
 var
        fxNow, timerId,
@@ -403,7 +404,8 @@ jQuery.speed = function( speed, easing, fn ) {
        };
 
        opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-               opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+               opt.duration in jQuery.fx.speeds ?
+                       jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
 
        // normalize opt.queue - true/undefined/null -> "fx"
        if ( opt.queue == null || opt.queue === true ) {