mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-01-06 15:39:04 +00:00
Remove function wrappers
This commit is contained in:
@@ -6,10 +6,7 @@ module-type: global
|
||||
Class to dispatch actions when filters change
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
function BackgroundActionDispatcher(filterTracker,wiki) {
|
||||
@@ -125,5 +122,3 @@ BackgroundActionTracker.prototype.destroy = function() {
|
||||
};
|
||||
|
||||
exports.BackgroundActionDispatcher = BackgroundActionDispatcher;
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: global
|
||||
Class to track the results of a filter string
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
function FilterTracker(wiki) {
|
||||
@@ -104,5 +101,3 @@ FilterTracker.prototype.processChanges = function(changes) {
|
||||
};
|
||||
|
||||
exports.FilterTracker = FilterTracker;
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: filterrunprefix
|
||||
Filter run prefix to make input titles available as variables when evaluating the filter run
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
exports.apply = function(operationSubFunction) {
|
||||
@@ -25,5 +22,3 @@ exports.apply = function(operationSubFunction) {
|
||||
results.pushTop(operationSubFunction(source,widget.makeFakeWidgetWithVariables(variables)));
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
||||
Filter operator for retrieving the changecount for each title in the list.
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
@@ -22,5 +19,3 @@ exports.changecount = function(source,operator,options) {
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
||||
Filter operators for colour operations
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var Color = require("$:/core/modules/utils/dom/color.js").Color,
|
||||
@@ -141,5 +138,3 @@ function makeParallelColourOperator(fn) {
|
||||
return fn(colours, operator, options, originalColours);
|
||||
};
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: info
|
||||
Initialise $:/info/ tiddlers derived from media queries via
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
exports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {
|
||||
@@ -68,5 +65,3 @@ exports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {
|
||||
}
|
||||
return [];
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: utils
|
||||
Color.js related utilities
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var Color = require("$:/core/modules/utils/dom/color.js").Color;
|
||||
@@ -56,5 +53,3 @@ exports.convertCSSColorToRGBString = function(colourString) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user