Skip to content

Commit 06dffb7

Browse files
author
Chris Car
committed
fixed this.data
1 parent 998f9be commit 06dffb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ AFRAME.registerComponent('ui-modal', {
2626

2727
init: function() {
2828

29-
document.querySelector(data.src).addEventListener(this.data.show, this.show.bind(this));
30-
document.querySelector(data.src).addEventListener(this.data.hide, this.hide.bind(this));
29+
document.querySelector(this.data.src).addEventListener(this.data.show, this.show.bind(this));
30+
document.querySelector(this.data.src).addEventListener(this.data.hide, this.hide.bind(this));
3131

3232
this.cameraEl = document.querySelector('a-entity[camera]');
3333

0 commit comments

Comments
 (0)