summaryrefslogtreecommitdiff
path: root/jarmonbuild/yuidoc_template/classmap.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'jarmonbuild/yuidoc_template/classmap.tmpl')
-rw-r--r--jarmonbuild/yuidoc_template/classmap.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/jarmonbuild/yuidoc_template/classmap.tmpl b/jarmonbuild/yuidoc_template/classmap.tmpl
new file mode 100644
index 0000000..34525a4
--- /dev/null
+++ b/jarmonbuild/yuidoc_template/classmap.tmpl
@@ -0,0 +1,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;
+};