1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-07 14:23:53 +00:00

Correct comments

This commit is contained in:
Jeremy Ruston 2013-08-06 15:27:02 +01:00
parent 39b6091258
commit 85007cb1e1

View File

@ -197,7 +197,7 @@ exports.addTiddler = function(tiddler) {
}; };
/* /*
Return a hashmap of the fields that should be set when a tiddler is modified Return a hashmap of the fields that should be set when a tiddler is created
*/ */
exports.getCreationFields = function() { exports.getCreationFields = function() {
var fields = { var fields = {
@ -211,13 +211,12 @@ exports.getCreationFields = function() {
}; };
/* /*
Return a hashmap of the fields that should be set when a tiddler is created Return a hashmap of the fields that should be set when a tiddler is modified
*/ */
exports.getModificationFields = function() { exports.getModificationFields = function() {
var fields = { var fields = {},
modified: new Date()
},
modifier = this.getTiddlerText(USER_NAME_TITLE); modifier = this.getTiddlerText(USER_NAME_TITLE);
fields.modified = new Date();
if(modifier) { if(modifier) {
fields.modifier = modifier; fields.modifier = modifier;
} }