aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-11-26 18:39:30 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-11-26 18:39:30 +0100
commit9f6d924515be0d162c8fa726e9e73f600311ec09 (patch)
treef94607639bbb80335ece1ec5ecc5c1eb56be4d09
parent15586ea752486f7db108a804622f47746e462391 (diff)
downloadjquery-ui-9f6d924515be0d162c8fa726e9e73f600311ec09.tar.gz
jquery-ui-9f6d924515be0d162c8fa726e9e73f600311ec09.zip
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.
-rw-r--r--ui/effects/effect-transfer.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/effects/effect-transfer.js b/ui/effects/effect-transfer.js
index 38f815875..0029de7a5 100644
--- a/ui/effects/effect-transfer.js
+++ b/ui/effects/effect-transfer.js
@@ -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;
} ) );