}
-
- this.addicon = this.wrap.createChild(
- {tag: 'img', src: Ext.BLANK_IMAGE_URL, cls: 'x-form-combo-add' });
- var _t = this;
- this.adder.on('click', function(e) {
- this.fireEvent('adderclick', this, e);
- }, this);
-
+ if (typeof(this.events.add.listeners) != 'undefined') {
+
+ this.addicon = this.wrap.createChild(
+ {tag: 'img', src: Ext.BLANK_IMAGE_URL, cls: 'x-form-combo-add' });
+
+ this.adder.on('click', function(e) {
+ this.fireEvent('adderclick', this, e);
+ }, this);
+ }