1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

Fix up caller of wiki.forEachTiddler()

This commit is contained in:
Jermolene 2013-12-11 22:01:20 +00:00
parent 6298c7aa43
commit 1b75242345

View File

@ -203,7 +203,7 @@ var Command = function(params,commander,callback) {
handler: function(request,response,state) {
response.writeHead(200, {"Content-Type": "application/json"});
var tiddlers = [];
state.wiki.forEachTiddler("title",function(title,tiddler) {
state.wiki.forEachTiddler({sortField: "title"},function(title,tiddler) {
var tiddlerFields = {};
$tw.utils.each(tiddler.fields,function(field,name) {
if(name !== "text") {