AFRAME.registerComponent('do-something', { init: function () { var sceneEl = this.el; sceneEl.enterVR() } });