File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/modules/marker/templates Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 99 var marker = this .el ;
1010 this .vid = document .querySelector (" #vid" );
1111
12- marker .addEventListener (' markerFound' , () => {
12+ marker .addEventListener (' markerFound' , function () {
1313 this .toggle = true ;
1414 this .vid .play ();
15- }) .bind (this ));
15+ }.bind (this ));
1616
17- marker .addEventListener (' markerLost' , () => {
17+ marker .addEventListener (' markerLost' , function () {
1818 this .toggle = false ;
1919 this .vid .pause ();
20- }) .bind (this ));
20+ }.bind (this ));
2121 },
2222 });
2323 </script >
Original file line number Diff line number Diff line change 1111 var marker = this .el ;
1212 this .vid = document .querySelector (" #vid" );
1313
14- marker .addEventListener (' markerFound' , () => {
14+ marker .addEventListener (' markerFound' , function () {
1515 this .toggle = true ;
1616 this .vid .play ();
17- }) .bind (this ));
17+ }.bind (this ));
1818
19- marker .addEventListener (' markerLost' , () => {
19+ marker .addEventListener (' markerLost' , function () {
2020 this .toggle = false ;
2121 this .vid .pause ();
22- }) .bind (this ));
22+ }.bind (this ));
2323 },
2424 });
2525 </script >
You can’t perform that action at this time.
0 commit comments