File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1759
1759
// Autoload files based on node type or file name
1760
1760
//
1761
1761
CHTMLautoload : function ( ) {
1762
+ this . toCommonHTML = MML . mbase . CHTMLautoloadFail ;
1762
1763
var file = CHTML . autoloadDir + "/" + this . type + ".js" ;
1763
1764
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
1764
1765
} ,
1766
+ CHTMLautoloadFail : function ( ) {
1767
+ throw Error ( "CommonHTML can't autoload '" + this . type + "'" ) ;
1768
+ } ,
1769
+ CHTMLautoloadList : { } ,
1765
1770
CHTMLautoloadFile : function ( name ) {
1771
+ if ( MML . mbase . CHTMLautoloadList . hasOwnProperty ( name ) ) {
1772
+ throw Error ( "CommonHTML can't autoload file '" + name + "'" ) ;
1773
+ }
1774
+ MML . mbase . CHTMLautoloadList [ name ] = true ;
1766
1775
var file = CHTML . autoloadDir + "/" + name + ".js" ;
1767
1776
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
1768
1777
} ,
Original file line number Diff line number Diff line change 2192
2192
2193
2193
} , {
2194
2194
HTMLautoload : function ( ) {
2195
+ this . toHTML = MML . mbase . HTMLautoloadFail ;
2195
2196
var file = HTMLCSS . autoloadDir + "/" + this . type + ".js" ;
2196
2197
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
2197
2198
} ,
2199
+ HTMLautoloadFail : function ( ) {
2200
+ throw Error ( "HTML-CSS can't autoload '" + this . type + "'" ) ;
2201
+ } ,
2202
+ HTMLautoloadList : { } ,
2198
2203
HTMLautoloadFile : function ( name ) {
2204
+ if ( MML . mbase . HTMLautoloadList . hasOwnProperty ( name ) ) {
2205
+ throw Error ( "HTML-CSS can't autoload file '" + name + "'" ) ;
2206
+ }
2207
+ MML . mbase . HTMLautoloadList [ name ] = true ;
2199
2208
var file = HTMLCSS . autoloadDir + "/" + name + ".js" ;
2200
2209
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
2201
2210
} ,
Original file line number Diff line number Diff line change 1453
1453
return svg ;
1454
1454
} ,
1455
1455
SVGautoload : function ( ) {
1456
+ this . toSVG = MML . mbase . SVGautoloadFail ;
1456
1457
var file = SVG . autoloadDir + "/" + this . type + ".js" ;
1457
1458
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
1458
1459
} ,
1460
+ SVGautoloadFail : function ( ) {
1461
+ throw Error ( "SVG can't autoload '" + this . type + "'" ) ;
1462
+ } ,
1463
+ SVGautoloadList : { } ,
1459
1464
SVGautoloadFile : function ( name ) {
1465
+ if ( MML . mbase . SVGautoloadList . hasOwnProperty ( name ) ) {
1466
+ throw Error ( "SVG can't autoload file '" + name + "'" ) ;
1467
+ }
1468
+ MML . mbase . SVGautoloadList [ name ] = true ;
1460
1469
var file = SVG . autoloadDir + "/" + name + ".js" ;
1461
1470
HUB . RestartAfter ( AJAX . Require ( file ) ) ;
1462
1471
}
You can’t perform that action at this time.
0 commit comments