load() instead of event listeners
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
AFRAME.registerComponent('assets-loaded', {
|
||||
init: function () {
|
||||
this.el.addEventListener('loaded', this.onLoad.bind(this));
|
||||
this.el.addEventListener('timeout', this.onLoad.bind(this));
|
||||
},
|
||||
|
||||
onLoad: function (ev) {
|
||||
document.getElementById('tutorial2d').style.display = 'none';
|
||||
}
|
||||
});
|
||||
5
src/components/tutorial-2d.js
Normal file
5
src/components/tutorial-2d.js
Normal file
@@ -0,0 +1,5 @@
|
||||
AFRAME.registerComponent('tutorial-2d', {
|
||||
play: function () {
|
||||
document.getElementById('tutorial2d').style.display = 'none';
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user