1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 15:24:50 +00:00

Ensure getTiddlerList() returns a copy of the tiddler list

Fixes #155
This commit is contained in:
Jeremy Ruston 2013-09-18 12:12:29 +01:00
parent 7f3000aaae
commit b563d8e98a

View File

@ -538,7 +538,7 @@ Return the content of a tiddler as an array containing each line
exports.getTiddlerList = function(title) {
var tiddler = this.getTiddler(title);
if(tiddler && $tw.utils.isArray(tiddler.fields.list)) {
return tiddler.fields.list;
return tiddler.fields.list.slice(0);
}
return [];
};