File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,14 @@ module.exports = registerElement('a-scene', {
4545
4646 createdCallback : {
4747 value : function ( ) {
48- this . isMobile = isMobile ;
4948 this . isIOS = isIOS ;
49+ this . isMobile = isMobile ;
5050 this . isScene = true ;
5151 this . object3D = new THREE . Scene ( ) ;
52+ this . renderBinded = this . render . bind ( this ) ;
5253 this . systems = { } ;
5354 this . time = 0 ;
55+
5456 this . init ( ) ;
5557 }
5658 } ,
@@ -404,7 +406,7 @@ module.exports = registerElement('a-scene', {
404406 this . effect . render ( this . object3D , this . camera ) ;
405407
406408 this . time = time ;
407- this . animationFrameID = window . requestAnimationFrame ( this . render . bind ( this ) ) ;
409+ this . animationFrameID = window . requestAnimationFrame ( this . renderBinded ) ;
408410 } ,
409411 writable : window . debug
410412 }
You can’t perform that action at this time.
0 commit comments