function _destroyNode(node) {

        // Remove node from linked-list
        if (node._next) {
            node._next._prev = node._prev;
        }
        if (node._prev) {
            node._prev._next = node._next;
        }
        else {
            this._first = node._next;
        }

        // Destroy the node
        node.destroy();

        // Add node to pool
        if (this._pool.layoutNodes.size < MAX_POOL_SIZE) {
            this._pool.layoutNodes.size++;
            node._prev = undefined;
            node._next = this._pool.layoutNodes.first;
            this._pool.layoutNodes.first = node;
        }
    }
function _destroyNode(node) {

        
        if (node._next) {
            node._next._prev = node._prev;
        }
        if (node._prev) {
            node._prev._next = node._next;
        }
        else {
            this._first = node._next;
        }

        
        node.destroy();

        
        if (this._pool.layoutNodes.size < MAX_POOL_SIZE) {
            this._pool.layoutNodes.size++;
            node._prev = undefined;
            node._next = this._pool.layoutNodes.first;
            this._pool.layoutNodes.first = node;
        }
    }
function _destroyNode ( node ) { // Remove node from linked-list if ( node . _next ) { node . _next . _prev = node . _prev ; } if ( node . _prev ) { node . _prev . _next = node . _next ; } else { this . _first = node . _next ; } // Destroy the node node . destroy ( ) ; // Add node to pool if ( this . _pool . layoutNodes . size < MAX_POOL_SIZE ) { this . _pool . layoutNodes . size ++ ; node . _prev = undefined ; node . _next = this . _pool . layoutNodes . first ; this . _pool . layoutNodes . first = node ; } }
Destroys a layout-node
Destroys a layout - node