PDA

View Full Version : [3.x] TreeNodeUI.hasClass



turbovegas
8 Jan 2010, 8:52 AM
Ext.tree.TreeNodeUI has methods for addClass and removeClass, but no hasClass. Here's the implementation:


Ext.override(Ext.tree.TreeNodeUI, {
hasClass: function(cls) {
return this.elNode ? Ext.fly(this.elNode).hasClass(cls) : false;
}
});