1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-18 07:44:51 +00:00

Fixed issue #46

This commit is contained in:
Jeremy Ruston 2012-10-28 20:51:18 +00:00
parent 46a1dd662c
commit 072c06b412

View File

@ -22,7 +22,12 @@ exports.info = {
}; };
exports.getList = function(title) { exports.getList = function(title) {
return this.wiki.getTextReference(title,"").split("\n"); var text = this.wiki.getTextReference(title,"");
if(text && text.length > 0) {
return text.split("\n");
} else {
return [];
}
}; };
exports.saveList = function(title,list) { exports.saveList = function(title,list) {