Skip to content

Commit

Permalink
Build: code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Dec 22, 2015
1 parent 813b7e4 commit 8c507df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
6 changes: 4 additions & 2 deletions src/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 8c507df

Please sign in to comment.