Add isDraft to Tiddler object

Check to see if this tiddler is a draft (has a draft.of field)
print-window-tiddler
Devin Weaver 2014-04-25 08:44:34 -04:00
rodzic 540681b2bc
commit 23640d7af4
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -791,6 +791,10 @@ $tw.Tiddler.prototype.hasField = function(field) {
return $tw.utils.hop(this.fields,field);
};
$tw.Tiddler.prototype.isDraft = function() {
return this.hasField("draft.of");
};
/*
Register and install the built in tiddler field modules
*/