+ 2
You can probably instantiate your ctx variable on a globally scope which mean outside of any particular function, so all those functions can acess it as long as your code goes. var ctx = value; function init (){ // code }
30th Dec 2018, 1:10 AM
Zenobio
Zenobio - avatar