commit 95f632a6bd3e1270bc0625b1f4a6c7600abfcea4
parent ef47023ba60bd517bbbf1784472634fb18a8f56d
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 18 Mar 2015 11:23:45 -0400
Add autoload ability and stubs for the elements that need autoloading.
Diffstat:
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -1342,6 +1342,17 @@
},{
//
+ // Autoload files based on node type or file name
+ //
+ HTMLautoload: function () {
+ var file = CHTML.autoloadDir+"/"+this.type+".js";
+ HUB.RestartAfter(AJAX.Require(file));
+ },
+ HTMLautoloadFile: function (name) {
+ var file = CHTML.autoloadDir+"/"+name+".js";
+ HUB.RestartAfter(AJAX.Require(file));
+ },
+ //
// For use with embellished operators
//
CHTMLstretchV: function (h,d) {
@@ -2277,10 +2288,19 @@
return node;
}
});
- MML.annotation.Augment({toCommonHTML: function(node) {}});
+ MML.annotation.Augment({toCommonHTML: function(node) {return this.CHTMLcreateNode(node)}});
MML["annotation-xml"].Augment({toCommonHTML: function(node) {}});
+// MML["annotation-xml"].Augment({toCommonHTML: MML.mbase.CHTMLautoload});
/********************************************************/
+
+// MML.ms.Augment({toCommonHTML: MML.mbase.CHTMLautoload});
+// MML.mglyph.Augment({toCommonHTML: MML.mbase.CHTMLautoload});
+// MML.menclose.Augment({toCommonHTML: MML.mbase.CHTMLautoload});
+// MML.maction.Augment({toCommonHTML: MML.mbase.CHTMLautoload});
+// MML.mmultiscripts.Augment({toCommonHTML: MML.mbase.CHTMLautoload});
+
+ /********************************************************/
//
// Loading isn't complete until the element jax is modified,