Extjs — Plugins
destroy: function() if (this.host) this.host.un('someevent', this.handler, this); delete this.host;
);
toggleRow: function(view, rowIdx, colIdx, item, e, record) var row = view.getRow(rowIdx); if (row && row.nextSibling && row.nextSibling.classList.contains('x-row-expander-detail')) Ext.fly(row.nextSibling).destroy(); else this.showDetail(row, record); extjs plugins
While the terms are sometimes used interchangeably in the community, there is a technical distinction: destroy: function() if (this
validate: function() var errors = []; // validation logic return errors; destroy: function() if (this.host) this.host.un('someevent'




