From 9f6d924515be0d162c8fa726e9e73f600311ec09 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 26 Nov 2015 18:39:30 +0100 Subject: 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. --- ui/effects/effect-transfer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui') 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; } ) ); -- cgit v1.2.3