mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: code style fixes
This commit is contained in:
parent
813b7e4c8d
commit
8c507df1d5
@ -295,7 +295,11 @@ jQuery.extend( {
|
|||||||
// We use an anonymous function so that context is window
|
// We use an anonymous function so that context is window
|
||||||
// rather than jQuery in Firefox
|
// rather than jQuery in Firefox
|
||||||
( window.execScript || function( data ) {
|
( window.execScript || function( data ) {
|
||||||
|
|
||||||
|
// jscs:disable
|
||||||
window[ "eval" ].call( window, data );
|
window[ "eval" ].call( window, data );
|
||||||
|
// jscs:enable
|
||||||
|
|
||||||
} )( data );
|
} )( data );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -93,7 +93,8 @@ function showHide( elements, show ) {
|
|||||||
// in a stylesheet to whatever the default browser style is
|
// in a stylesheet to whatever the default browser style is
|
||||||
// for such an element
|
// for such an element
|
||||||
if ( elem.style.display === "" && isHidden( elem ) ) {
|
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 {
|
} else {
|
||||||
hidden = isHidden( elem );
|
hidden = isHidden( elem );
|
||||||
|
6
src/effects.js
vendored
6
src/effects.js
vendored
@ -15,7 +15,8 @@ define( [
|
|||||||
"./css",
|
"./css",
|
||||||
"./deferred",
|
"./deferred",
|
||||||
"./traversing"
|
"./traversing"
|
||||||
], function( jQuery, document, rcssNum, rnotwhite, cssExpand, isHidden, adjustCSS, defaultDisplay ) {
|
], function( jQuery, document, rcssNum, rnotwhite, cssExpand,
|
||||||
|
isHidden, adjustCSS, defaultDisplay ) {
|
||||||
|
|
||||||
var
|
var
|
||||||
fxNow, timerId,
|
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 = 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"
|
// normalize opt.queue - true/undefined/null -> "fx"
|
||||||
if ( opt.queue == null || opt.queue === true ) {
|
if ( opt.queue == null || opt.queue === true ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user