diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2016-03-31 00:30:21 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-04-13 11:32:04 -0400 |
commit | ba7829f34ef3b0f207cc62f10b8c5c8b4c19c62a (patch) | |
tree | b0c49330d030f823351390bcee5abb8106dacdb7 | |
parent | 3858df5d5b3da2cec040d65d88a19198a3fa4e43 (diff) | |
download | jquery-ui-ba7829f34ef3b0f207cc62f10b8c5c8b4c19c62a.tar.gz jquery-ui-ba7829f34ef3b0f207cc62f10b8c5c8b4c19c62a.zip |
Effects: Fix line length issues
Ref gh-1690
-rw-r--r-- | ui/effects/effect-drop.js | 3 | ||||
-rw-r--r-- | ui/effects/effect-scale.js | 2 | ||||
-rw-r--r-- | ui/effects/effect-shake.js | 4 | ||||
-rw-r--r-- | ui/effects/effect-slide.js | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/ui/effects/effect-drop.js b/ui/effects/effect-drop.js index 059fd54ca..c7e3d7a6e 100644 --- a/ui/effects/effect-drop.js +++ b/ui/effects/effect-drop.js @@ -45,7 +45,8 @@ return $.effects.define( "drop", "hide", function( options, done ) { $.effects.createPlaceholder( element ); - distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2; + distance = options.distance || + element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2; animation[ ref ] = motion + distance; diff --git a/ui/effects/effect-scale.js b/ui/effects/effect-scale.js index 9e254b27e..9379f88c7 100644 --- a/ui/effects/effect-scale.js +++ b/ui/effects/effect-scale.js @@ -9,7 +9,7 @@ //>>label: Scale Effect //>>group: Effects -//>>description: Grows or shrinks an element and its content. Restores an element to its original size. +//>>description: Grows or shrinks an element and its content. //>>docs: http://api.jqueryui.com/scale-effect/ //>>demos: http://jqueryui.com/effect/ diff --git a/ui/effects/effect-shake.js b/ui/effects/effect-shake.js index ada249aec..596aa12ae 100644 --- a/ui/effects/effect-shake.js +++ b/ui/effects/effect-shake.js @@ -58,7 +58,9 @@ return $.effects.define( "shake", function( options, done ) { // Shakes for ( ; i < times; i++ ) { - element.animate( animation1, speed, options.easing ).animate( animation2, speed, options.easing ); + element + .animate( animation1, speed, options.easing ) + .animate( animation2, speed, options.easing ); } element diff --git a/ui/effects/effect-slide.js b/ui/effects/effect-slide.js index 12e8c9ca8..3ba7a2edc 100644 --- a/ui/effects/effect-slide.js +++ b/ui/effects/effect-slide.js @@ -42,7 +42,8 @@ return $.effects.define( "slide", "show", function( options, done ) { direction = options.direction || "left", ref = ( direction === "up" || direction === "down" ) ? "top" : "left", positiveMotion = ( direction === "up" || direction === "left" ), - distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ), + distance = options.distance || + element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ), animation = {}; $.effects.createPlaceholder( element ); |