How to use Jquery UI with Jquery 3.1

2

I am using Jquery UI 1.12 with Jquery 3.1.1 and using the draggable and resizable functions.

However, whenever I go to test it does not work because it gives the exception

$(...).find(...).andSelf is not a function 

I searched and saw that this andSelf was taken and put the addBack in the jQuery most current, but it does not work jQuery UI , only with Jquery 1.12 . But the site I'm touching has already imported jQuery 3.1.1 and I can not move because it can give a problem in some function someone has done previously.

What can I do to solve this problem?

    
asked by anonymous 25.09.2017 / 19:09

1 answer

0

.andSelf() has been discontinued in jQuery 1.8, details:

Use instead of it addBack

If it's a bug in jQuery, try upgrading to 1.12.1 (stable version), if it does not, just try a hack:

$.fn.andSelf = function() {
     return this.addBack.apply(this, arguments);
};
    
25.09.2017 / 19:57