Message Thread: |
View All MessagesBack to WebFX |
Hi,
When removing the last "WebFXTreeItem" from a "WebFXTree" a javascript error occurs. The plus- and minus-icons thar are set on removal are only available for the "WebFXTreeItems" and not for a "WebFXTree". I've channged the code to allow manipulation of plus- and minus-icons only if the parentNode has a parentNode. In other words if it is not the root. <code> WebFXTreeItem.prototype.remove = function() { ... if ( this.parentNode.parentNode ) ... </code>
|