1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
YAHOO.env.classMap = ${pkgmap}; YAHOO.env.resolveClass = function(className) { var a=className.split('.'), ns=YAHOO.env.classMap; for (var i=0; i<a.length; i=i+1) { if (ns[a[i]]) { ns = ns[a[i]]; } else { return null; } } return ns; };