summaryrefslogtreecommitdiff
path: root/jarmonbuild/yuidoc_template/classmap.tmpl
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-08-22 22:38:05 +0100
committerRichard Wall <richard@aziz>2010-08-22 22:38:05 +0100
commit54b3c39b40077b045e7d10b78eaf85b11dad5a3a (patch)
tree613de63bd5fa0976e138be2601bd4caf991e61f9 /jarmonbuild/yuidoc_template/classmap.tmpl
parentfb130e633439f43a733f5de3bd36aa4f34a89fe2 (diff)
parent352f0ea3d709eced87f598b4058d43aff0d5664a (diff)
Merge ~richardw/jarmon/auto-apidocumentationv10.8pre1
* Cleanup and add further doc strings for compatibility with yuidoc * Add a tool to automatically download and run yuidoc on the source tree * Add a tool to automatically create a releasable source archive containing apidocs * Add documentation of the apidoc and release tools. * Rearrange the source tree - moving all examples into the docs/examplesfolder
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;
+};