Add autoload ability and stubs for the elements that need autoloading.

This commit is contained in:
Davide P. Cervone 2015-03-18 11:23:45 -04:00
parent ef47023ba6
commit 95f632a6bd

View File

@ -1341,6 +1341,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 // For use with embellished operators
// //
@ -2277,10 +2288,19 @@
return node; 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: 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, // Loading isn't complete until the element jax is modified,