1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-12 05:23:00 +00:00

Remove plugin field now that we've got the plugin-type field

I've been meaning to remove the `plugin` field for ages.
This commit is contained in:
Jeremy Ruston
2013-08-23 18:37:54 +01:00
parent ea1855d872
commit d6ec1ea1e5
4 changed files with 2 additions and 7 deletions

View File

@@ -741,7 +741,7 @@ $tw.Wiki.prototype.registerPluginTiddlers = function(pluginType,titles) {
registeredTitles = [];
// Go through the provided titles, or the entire tiddler list, looking for plugins of this type
var checkTiddler = function(tiddler) {
if(tiddler && tiddler.fields.type === "application/json" && tiddler.hasField("plugin") && tiddler.fields["plugin-type"] === pluginType) {
if(tiddler && tiddler.fields.type === "application/json" && tiddler.fields["plugin-type"] === pluginType) {
self.plugins.push(tiddler);
registeredTitles.push(tiddler.fields.title);
}
@@ -1173,7 +1173,6 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
var fields = {
title: pluginInfo.title,
type: "application/json",
plugin: "yes",
text: JSON.stringify(pluginInfo,null,4),
"plugin-priority": pluginInfo["plugin-priority"],
"name": pluginInfo["name"],