mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
15586ea752
commit
9f6d924515
@ -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;
|
||||
|
||||
} ) );
|
||||
|
Loading…
Reference in New Issue
Block a user