clean() {
        if (this.linked) {
            this.linked = null;
        }
        this.onClean.forEach((callback) => {
            callback(this);
        });
        this.element.textContent = "";
        return this;
    }
/**
     * Cleans the Node's child tree.
     *
     * @returns - IsotopeNode.
     */
Cleans the Node's child tree.
Cleans the Node ' s child tree .
clean() {
        if (this.linked) {
            this.linked = null;
        }
        this.onClean.forEach((callback) => {
            callback(this);
        });
        this.element.textContent = "";
        return this;
    }
clean ( ) { if ( this . linked ) { this . linked = null ; } this . onClean . forEach ( ( callback ) => { callback ( this ) ; } ) ; this . element . textContent = "" ; return this ; }
Cleans the Node's child tree.
Cleans the Node ' s child tree .