Bugfix: jQuery UI classesElementLookup value is Object, not an Array

This commit is contained in:
djmaze 2020-08-11 23:52:36 +02:00
parent 9e167ac981
commit c3a213802d
2 changed files with 3 additions and 3 deletions

View file

@ -553,8 +553,8 @@ $.Widget.prototype = {
_untrackClassesElement: function( event ) {
var that = this;
$.each( that.classesElementLookup, function( key, value ) {
if ( value.includes(event.target) ) {
$.each( that.classesElementLookup, (key, value) => {
if ( $.inArray( event.target, value ) !== -1 ) {
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
}
} );

File diff suppressed because one or more lines are too long