Re: onScreenWidthChange function
Posted: 07 July 2020, 00:31
Good idea, I will try that.Tisaac wrote: ↑07 July 2020, 00:13 Then just use a conditional and call the function again in the onScreenWidthChange :
Code: Select all
updateSize: function(){ if($('game_play_area')){ var w = dojo.position('game_play_area')['w']; ... }, onScreenWidthChange: function(){ this.updateSize(); }