mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Improve handling of fieldmodules lacking a stringify method
This commit is contained in:
parent
0be6bf84d1
commit
8471a2217a
@ -28,7 +28,7 @@ exports.getFieldString = function(field) {
|
|||||||
}
|
}
|
||||||
// Parse the field with the associated module (if any)
|
// Parse the field with the associated module (if any)
|
||||||
var fieldModule = $tw.Tiddler.fieldModules[field];
|
var fieldModule = $tw.Tiddler.fieldModules[field];
|
||||||
if(fieldModule) {
|
if(fieldModule && fieldModule.stringify) {
|
||||||
return fieldModule.stringify.call(this,value);
|
return fieldModule.stringify.call(this,value);
|
||||||
} else {
|
} else {
|
||||||
return value.toString();
|
return value.toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user