dist/claygl.es.js
function (node) {
        var idx;
        if (node instanceof Camera) {
            idx = this._cameraList.indexOf(node);
            if (idx >= 0) {
                this._cameraList.splice(idx, 1);
            }
        }
        else if (node instanceof Light) {
            idx = this.lights.indexOf(node);
            if (idx >= 0) {
                this.lights.splice(idx, 1);
            }
        }
        if (node.name) {
            delete this._nodeRepository[node.name];
        }
    }
function (node) {
        var idx;
        if (node instanceof Camera) {
            idx = this._cameraList.indexOf(node);
            if (idx >= 0) {
                this._cameraList.splice(idx, 1);
            }
        }
        else if (node instanceof Light) {
            idx = this.lights.indexOf(node);
            if (idx >= 0) {
                this.lights.splice(idx, 1);
            }
        }
        if (node.name) {
            delete this._nodeRepository[node.name];
        }
    }
function ( node ) { var idx ; if ( node instanceof Camera ) { idx = this . _cameraList . indexOf ( node ) ; if ( idx >= 0 ) { this . _cameraList . splice ( idx , 1 ) ; } } else if ( node instanceof Light ) { idx = this . lights . indexOf ( node ) ; if ( idx >= 0 ) { this . lights . splice ( idx , 1 ) ; } } if ( node . name ) { delete this . _nodeRepository [ node . name ] ; } }
Remove node from scene
Remove node from scene