Skip to content

Commit ba7829f

Browse files
arschmitzscottgonzalez
authored andcommitted
Effects: Fix line length issues
Ref jquerygh-1690
1 parent 3858df5 commit ba7829f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

ui/effects/effect-drop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ return $.effects.define( "drop", "hide", function( options, done ) {
4545

4646
$.effects.createPlaceholder( element );
4747

48-
distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
48+
distance = options.distance ||
49+
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
4950

5051
animation[ ref ] = motion + distance;
5152

ui/effects/effect-scale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
//>>label: Scale Effect
1111
//>>group: Effects
12-
//>>description: Grows or shrinks an element and its content. Restores an element to its original size.
12+
//>>description: Grows or shrinks an element and its content.
1313
//>>docs: http://api.jqueryui.com/scale-effect/
1414
//>>demos: http://jqueryui.com/effect/
1515

ui/effects/effect-shake.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ return $.effects.define( "shake", function( options, done ) {
5858

5959
// Shakes
6060
for ( ; i < times; i++ ) {
61-
element.animate( animation1, speed, options.easing ).animate( animation2, speed, options.easing );
61+
element
62+
.animate( animation1, speed, options.easing )
63+
.animate( animation2, speed, options.easing );
6264
}
6365

6466
element

ui/effects/effect-slide.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ return $.effects.define( "slide", "show", function( options, done ) {
4242
direction = options.direction || "left",
4343
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
4444
positiveMotion = ( direction === "up" || direction === "left" ),
45-
distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
45+
distance = options.distance ||
46+
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
4647
animation = {};
4748

4849
$.effects.createPlaceholder( element );

0 commit comments

Comments
 (0)