digitick/yii-combobox — Issue #1: Error on "destroy" (Uncaught TypeError: Cannot call method 'remove' of undefined)
Author: ader1990
Created: 2012-03-06 16:15:05+00:00
State: open

The "destroy" function looks like this:

destroy: function() {
this.input.remove(); // this.input doesn't exist
this.button.remove();
this.element.show();
$.Widget.prototype.destroy.call(this);
}

"this.input" doesn't exist, whilst "input" does exist.

This is the full error code, where the 'undefined' is "this.input":
Uncaught TypeError: Cannot call method 'remove' of undefined
$.widget.destroy
b.Widget._createWidget
jQuery.event.dispatchjquery.js:3256
jQuery.event.add.elemData.handle.eventHandlejquery.js:2875
jQuery.event.triggerjquery.js:3144
jQuery.fn.extend.triggerHandlerjquery.js:3786
b.cleanData
a.cleanData
jQuery.fn.extend.emptyjquery.js:5822
_cleanupjquery.fancybox-1.3.4.js:962
jQuery.extend.speed.opt.completejquery.js:8590
jQuery.fx.stepjquery.js:8760
tjquery.js:8660
jQuery.extend.tick