Open puschie286 opened 6 years ago
found the problem : you need to destroy all parts ( and references ), the jquery objects on the startinput
my temp solution is:
TimePicker.prototype.destroy = function () {
var that = this;
$(window)
.off('mouseup.xdsoft' + that.uniqueid + ' touchend.xdsoft' + that.uniqueid)
.off('mousemove.xdsoft' + that.uniqueid + ' touchmove.xdsoft' + that.uniqueid);
that.timepicker.remove();
that.startinput.removeData( 'timepickeralone' );
$.each( that.startinput[0], function( Key, Value ) {
if( !Key.startsWith( 'jQuery' ) ) return;
delete that.startinput[0][Key];
});
delete that.timepicker;
delete that.boxes;
delete that.currentime;
delete that.startinput;
};
i get an error on some timepicker when there are more than 4 on a page:
jquery.timepicker.js:194
the boxes variable is undefined.