Lib1.js
==============
Variable1 = new Apple();// Apple class is in Apple.js
How can I define "Variable1" if "Apple.js" loaded ?
smt like this :
if(Apple.js is loaded){
Variable1 = new Apple()
}
Thanks a bunch
if (typeof Apple === 'function')
Обсуждают сегодня