jquery/jquery-ui

Demos: 1.14 needs `$.uiBackCompat = true;` to use `transfer` Effect

melloware opened this issue · 3 comments

To use the Transfer effect you have to have $.uiBackCompat = true; and not sure why.

You can see the error on the showcase: https://jqueryui.com/effect/

Pick Transfer and run.

image

mgol commented

Thanks for the report. See https://api.jqueryui.com/transfer-effect/:

This effect is deprecated, replaced by the .transfer() method.

Trac bug #14749 has more details:

The transfer effect doesn't behave like a normal effect. As such, it should be converted a plugin instead of using the effects API.

We should just remove the effect from the demo, I think:

<option value="transfer">Transfer</option>

And perhaps also its visual test:

$( "#transfer" ).on( "click", function() {
$( this )
.addClass( "current" )
.effect( "transfer", { to: $( "div" ).eq( 0 ) }, 1000, function() {
$( this ).removeClass( "current" );
} );
} );

Thanks you i have updated to use .transfer() method!

mgol commented

PR: #2291