src/systems/camera.js
function removeDefaultCamera (sceneEl) {
  var defaultCamera;
  var camera = sceneEl.camera;
  if (!camera) { return; }

  // Remove default camera if present.
  defaultCamera = sceneEl.querySelector('[' + DEFAULT_CAMERA_ATTR + ']');
  if (!defaultCamera) { return; }
  sceneEl.removeChild(defaultCamera);
}
function removeDefaultCamera (sceneEl) {
  var defaultCamera;
  var camera = sceneEl.camera;
  if (!camera) { return; }

  // Remove default camera if present.
  defaultCamera = sceneEl.querySelector('[' + DEFAULT_CAMERA_ATTR + ']');
  if (!defaultCamera) { return; }
  sceneEl.removeChild(defaultCamera);
}
function removeDefaultCamera ( sceneEl ) { var defaultCamera ; var camera = sceneEl . camera ; if ( ! camera ) { return ; } // Remove default camera if present. defaultCamera = sceneEl . querySelector ( '[' + DEFAULT_CAMERA_ATTR + ']' ) ; if ( ! defaultCamera ) { return ; } sceneEl . removeChild ( defaultCamera ) ; }
Remove injected default camera from scene, if present.

@param {Element} sceneEl
Remove injected default camera from scene if present .