summaryrefslogtreecommitdiff
path: root/jarmonbuild/yuidoc_template/classmap.tmpl
blob: 34525a433d3ad7eac5df1b871f65ea12528d867f (plain)
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;
};