mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
Remove function wrappers from core/modules (#9028)
This commit is contained in:
parent
73e70e77c1
commit
fbeb8cddc8
@ -6,7 +6,6 @@ module-type: filteroperator
|
|||||||
Filter operator for returning all the backtranscludes from a tiddler
|
Filter operator for returning all the backtranscludes from a tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -19,5 +18,3 @@ exports.backtranscludes = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results.makeTiddlerIterator(options.wiki);
|
return results.makeTiddlerIterator(options.wiki);
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -6,7 +6,6 @@ module-type: filteroperator
|
|||||||
Filter operator for returning all the transcludes from a tiddler
|
Filter operator for returning all the transcludes from a tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -19,5 +18,3 @@ exports.transcludes = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results.makeTiddlerIterator(options.wiki);
|
return results.makeTiddlerIterator(options.wiki);
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -10,7 +10,6 @@ This is a <%if [{something}] %>Elephant<%elseif [{else}] %>Pelican<%else%>Crocod
|
|||||||
```
|
```
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.name = "conditional";
|
exports.name = "conditional";
|
||||||
@ -113,5 +112,3 @@ exports.parseIfClause = function(filterCondition) {
|
|||||||
// Return the parse tree node
|
// Return the parse tree node
|
||||||
return [listWidget];
|
return [listWidget];
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -6,8 +6,6 @@ module-type: utils
|
|||||||
Custom errors for TiddlyWiki.
|
Custom errors for TiddlyWiki.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
function TranscludeRecursionError() {
|
function TranscludeRecursionError() {
|
||||||
Error.apply(this,arguments);
|
Error.apply(this,arguments);
|
||||||
this.signatures = Object.create(null);
|
this.signatures = Object.create(null);
|
||||||
@ -19,5 +17,3 @@ TranscludeRecursionError.MAX_WIDGET_TREE_DEPTH = 1000;
|
|||||||
TranscludeRecursionError.prototype = Object.create(Error);
|
TranscludeRecursionError.prototype = Object.create(Error);
|
||||||
|
|
||||||
exports.TranscludeRecursionError = TranscludeRecursionError;
|
exports.TranscludeRecursionError = TranscludeRecursionError;
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -6,7 +6,6 @@ module-type: utils
|
|||||||
Utilities for working with the TiddlyWiki repository file structure
|
Utilities for working with the TiddlyWiki repository file structure
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -45,5 +44,3 @@ exports.getAllPlugins = function(options) {
|
|||||||
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,options.ignoreEnvironmentVariables ? undefined : $tw.config.languagesEnvVar),collectPlugins);
|
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,options.ignoreEnvironmentVariables ? undefined : $tw.config.languagesEnvVar),collectPlugins);
|
||||||
return tiddlers;
|
return tiddlers;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -6,7 +6,6 @@ module-type: widget
|
|||||||
Widget to dynamically represent one or more tiddlers
|
Widget to dynamically represent one or more tiddlers
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||||
@ -187,5 +186,3 @@ function hasPayloadChanged(a,b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.data = DataWidget;
|
exports.data = DataWidget;
|
||||||
|
|
||||||
})();
|
|
||||||
|
@ -6,7 +6,6 @@ module-type: widget
|
|||||||
Widget to display a test case
|
Widget to display a test case
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||||
@ -160,5 +159,3 @@ TestCaseWidget.prototype.refresh = function(changedTiddlers) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports["testcase"] = TestCaseWidget;
|
exports["testcase"] = TestCaseWidget;
|
||||||
|
|
||||||
})();
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user