jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

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

Open melloware opened this issue 1 year ago • 2 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

melloware avatar Aug 08 '24 15:08 melloware

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: https://github.com/jquery/jquery-ui/blob/54f96eea31b21d9ecb00912261df3e5aaebf8cce/demos/effect/default.html#L78

And perhaps also its visual test: https://github.com/jquery/jquery-ui/blob/54f96eea31b21d9ecb00912261df3e5aaebf8cce/tests/visual/effects/effects.js#L86-L92

mgol avatar Aug 14 '24 10:08 mgol

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

melloware avatar Aug 14 '24 13:08 melloware

PR: #2291

mgol avatar Sep 09 '24 22:09 mgol