Skip to content

Commit ffce765

Browse files
committed
Effects Rewrite: No longer swap "to" and "from" in scale.
This is now always handled by effect-size.
1 parent 520d44e commit ffce765

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ui/effect-scale.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
$.effects.define( "scale", function( o, done ) {
2828

2929
// Create element
30-
var temp,
31-
el = $( this ),
30+
var el = $( this ),
3231
mode = o.mode,
3332

3433
// this copies the "scale" option, which is normalized in $.effects.effect.size
@@ -68,12 +67,6 @@ $.effects.define( "scale", function( o, done ) {
6867
}
6968
}
7069

71-
if ( mode === "show" ) {
72-
temp = options.from;
73-
options.from = options.to;
74-
options.to = temp;
75-
}
76-
7770
$.effects.effect.size.call( this, options, done );
7871
});
7972

0 commit comments

Comments
 (0)