/*\ title: $:/core/modules/filters/all.js type: application/javascript module-type: filteroperator Filter operator for selecting tiddlers [all[shadows+tiddlers]] \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; var allFilterOperators; function getAllFilterOperators() { if(!allFilterOperators) { allFilterOperators = {}; $tw.modules.applyMethods("allfilteroperator",allFilterOperators); } return allFilterOperators; } /* Export our filter function */ exports.all = function(source,operator,options) { // Get our suboperators var allFilterOperators = getAllFilterOperators(); // Cycle through the suboperators accumulating their results var results = [], subops = operator.operand.split("+"); for(var t=0; t