mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-25 19:16:49 +00:00
27 lines
431 B
JavaScript
27 lines
431 B
JavaScript
/*\
|
|
title: $:/core/modules/filters/all/current.js
|
|
type: application/javascript
|
|
module-type: allfilteroperator
|
|
|
|
Filter function for [all[current]]
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
/*
|
|
Export our filter function
|
|
*/
|
|
exports.current = function(source,prefix,options) {
|
|
if(options.currTiddlerTitle) {
|
|
return [options.currTiddlerTitle];
|
|
} else {
|
|
return [];
|
|
}
|
|
};
|
|
|
|
})();
|