From: Oleg Gaidarenko Date: Tue, 22 Dec 2015 17:21:49 +0000 (+0300) Subject: Build: code style fixes X-Git-Tag: 1.12.0~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8c507df1d5aad7e9d0b72b96fb8f6b9dcca9ba51;p=jquery.git Build: code style fixes --- diff --git a/src/core.js b/src/core.js index 60291a5f0..b7425d277 100644 --- a/src/core.js +++ b/src/core.js @@ -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 ); } }, diff --git a/src/css.js b/src/css.js index 504192307..b48fe0a3b 100644 --- a/src/css.js +++ b/src/css.js @@ -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 ); diff --git a/src/effects.js b/src/effects.js index f005fe204..1241a2f99 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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 ) {