Effects: Refactor transfer back compat to avoid bad nested return

Download builder replaces return statements while concatenating a
bundle, but fails to deal with this nested return. Since this module
is already deprecated, pulling the return to the top level makes
more sense.
This commit is contained in:
Jörn Zaefferer 2015-11-26 18:39:30 +01:00
parent 15586ea752
commit 9f6d924515

View File

@ -29,10 +29,12 @@
}
}( function( $ ) {
var effect;
if ( $.uiBackCompat !== false ) {
return $.effects.define( "transfer", function( options, done ) {
effect = $.effects.define( "transfer", function( options, done ) {
$( this ).transfer( options, done );
} );
}
return effect;
} ) );