1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-20 00:34:50 +00:00

Merge branch 'master' into browser-messaging-saver

This commit is contained in:
jeremy@jermolene.com 2021-02-22 23:10:20 +00:00
commit f980d8a7b2
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ 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.
upgrader: Applies upgrade processing to tiddlers during an upgrade/import. upgrader: Applies upgrade processing to tiddlers during an upgrade/import.
utils: Adds methods to `$tw.utils`. utils: Adds methods to `$tw.utils`.
utils-browser: Adds browser-specific methods to `$tw.utils`.
utils-node: Adds Node.js-specific 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`.

View File

@ -22,6 +22,9 @@ exports.startup = function() {
if($tw.node) { if($tw.node) {
$tw.modules.applyMethods("utils-node",$tw.utils); $tw.modules.applyMethods("utils-node",$tw.utils);
} }
if($tw.browser) {
$tw.modules.applyMethods("utils-browser",$tw.utils);
}
$tw.modules.applyMethods("global",$tw); $tw.modules.applyMethods("global",$tw);
$tw.modules.applyMethods("config",$tw.config); $tw.modules.applyMethods("config",$tw.config);
$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield"); $tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield");