mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
27 lines
479 B
JavaScript
27 lines
479 B
JavaScript
/*\
|
|
title: $:/core/modules/filters/variables.js
|
|
type: application/javascript
|
|
module-type: filteroperator
|
|
|
|
Filter operator for returning the names of the active variables
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
/*
|
|
Export our filter function
|
|
*/
|
|
exports.variables = function(source,operator,options) {
|
|
var names = [];
|
|
for(var variable in options.widget.variables) {
|
|
names.push(variable);
|
|
}
|
|
return names.sort();
|
|
};
|
|
|
|
})();
|