1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-26 05:07:39 +00:00

Add support for filtering shadow tiddlers

This commit is contained in:
Jeremy Ruston
2013-04-03 14:29:12 +01:00
parent 0d247cb752
commit dc00e584fb
6 changed files with 46 additions and 19 deletions

View File

@@ -16,17 +16,6 @@ exports.hasTag = function(tag) {
return this.fields.tags && this.fields.tags.indexOf(tag) !== -1;
};
exports.isSystem = function() {
if(!$tw.utils.hop(this,"systemFlag")) {
this.systemFlag = this.fields.title.indexOf("$:/") === 0;
}
return this.systemFlag;
};
exports.isTemporary = function() {
return this.fields.title.indexOf("$:/temp/") === 0;
};
exports.getFieldString = function(field) {
var value = this.fields[field];
// Check for a missing field