kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add support for utils-node modules that are only run under Node.js
rodzic
327403b3c9
commit
b0394f1560
|
@ -16,6 +16,7 @@ tiddlerdeserializer: Converts different content types into tiddlers.
|
||||||
tiddlerfield: Defines the behaviour of an individual tiddler field.
|
tiddlerfield: Defines the behaviour of an individual tiddler field.
|
||||||
tiddlermethod: Adds methods to the `$tw.Tiddler` prototype.
|
tiddlermethod: Adds methods to the `$tw.Tiddler` prototype.
|
||||||
utils: Adds methods to `$tw.utils`.
|
utils: Adds methods to `$tw.utils`.
|
||||||
|
utils-node: Adds Node.js-specific methods to `$tw.utils`.
|
||||||
widget: Widgets encapsulate DOM rendering and refreshing.
|
widget: Widgets encapsulate DOM rendering and refreshing.
|
||||||
wikimethod: Adds methods to `$tw.Wiki`.
|
wikimethod: Adds methods to `$tw.Wiki`.
|
||||||
wikirule: Individual parser rules for the main WikiText parser.
|
wikirule: Individual parser rules for the main WikiText parser.
|
||||||
|
|
|
@ -18,6 +18,9 @@ exports.startup = function() {
|
||||||
var modules,n,m,f,commander;
|
var modules,n,m,f,commander;
|
||||||
// Load modules
|
// Load modules
|
||||||
$tw.modules.applyMethods("utils",$tw.utils);
|
$tw.modules.applyMethods("utils",$tw.utils);
|
||||||
|
if($tw.node) {
|
||||||
|
$tw.modules.applyMethods("utils-node",$tw.utils);
|
||||||
|
}
|
||||||
$tw.modules.applyMethods("global",$tw);
|
$tw.modules.applyMethods("global",$tw);
|
||||||
$tw.modules.applyMethods("config",$tw.config);
|
$tw.modules.applyMethods("config",$tw.config);
|
||||||
if($tw.browser) {
|
if($tw.browser) {
|
||||||
|
|
Ładowanie…
Reference in New Issue