1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fix bug with plugintiddlers filter operator

This commit is contained in:
Jermolene 2014-03-18 21:18:30 +00:00
parent a19432541e
commit b8d0fd059b
2 changed files with 6 additions and 1 deletions

View File

@ -899,6 +899,11 @@ $tw.Wiki = function(options) {
}
};
// Get plugin info for a plugin
this.getPluginInfo = function(title) {
return pluginInfo[title];
};
// Register the plugin tiddlers of a particular type, optionally restricting registration to an array of tiddler titles. Return the array of titles affected
this.registerPluginTiddlers = function(pluginType,titles) {
var self = this,

View File

@ -21,7 +21,7 @@ exports.plugintiddlers = function(source,operator,options) {
switch(operator.operand) {
default:
pushShadows = function(title) {
var pluginInfo = options.wiki.pluginInfo[title];
var pluginInfo = options.wiki.getPluginInfo(title);
if(pluginInfo) {
$tw.utils.each(pluginInfo.tiddlers,function(fields,title) {
results.push(title);