1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +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)
var fieldModule = $tw.Tiddler.fieldModules[field];
if(fieldModule) {
if(fieldModule && fieldModule.stringify) {
return fieldModule.stringify.call(this,value);
} else {
return value.toString();