1
0
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:
Jeremy Ruston 2013-06-13 09:16:26 +01:00
parent 0be6bf84d1
commit 8471a2217a

View File

@ -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();