1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-24 20:27:38 +00:00

Tighten terminology for plugins vs. modules

"Plugins" are bundles of tiddlers managed as one, "modules" are
JavaScript tiddlers with a module type identifying when and how they
should be executed.
This commit is contained in:
Jeremy Ruston
2012-08-03 15:09:48 +01:00
parent c11743088a
commit daff9c10f3
17 changed files with 100 additions and 103 deletions

View File

@@ -22,10 +22,10 @@ exports.getFieldString = function(field) {
if(value === undefined) {
return undefined;
}
// Parse the field with the associated plugin (if any)
var fieldPlugin = $tw.Tiddler.fieldPlugins[field];
if(fieldPlugin) {
return fieldPlugin.stringify.call(this,value);
// Parse the field with the associated module (if any)
var fieldModule = $tw.Tiddler.fieldModules[field];
if(fieldModule) {
return fieldModule.stringify.call(this,value);
} else {
return value.toString();
}