demos/layer-effects/index.js
function discardLayer(item) {
  if (confirm('Remove this layer?')) {
    scene.destroyLayer(item.layer);
    layers.remove(item);
  }
}
function discardLayer(item) {
  if (confirm('Remove this layer?')) {
    scene.destroyLayer(item.layer);
    layers.remove(item);
  }
}
function discardLayer ( item ) { if ( confirm ( 'Remove this layer?' ) ) { scene . destroyLayer ( item . layer ) ; layers . remove ( item ) ; } }
Discard an existing layer.
Discard an existing layer .