mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
More defensive handling of pluginInfo
This commit is contained in:
parent
c3e24c1228
commit
53ca7f6a2f
20
boot/boot.js
20
boot/boot.js
@ -964,15 +964,17 @@ $tw.Wiki = function(options) {
|
|||||||
shadowTiddlers = {};
|
shadowTiddlers = {};
|
||||||
$tw.utils.each(pluginTiddlers,function(tiddler) {
|
$tw.utils.each(pluginTiddlers,function(tiddler) {
|
||||||
// Extract the constituent tiddlers
|
// Extract the constituent tiddlers
|
||||||
$tw.utils.each(pluginInfo[tiddler.fields.title].tiddlers,function(constituentTiddler,constituentTitle) {
|
if($tw.utils.hop(pluginInfo,tiddler.fields.title)) {
|
||||||
// Save the tiddler object
|
$tw.utils.each(pluginInfo[tiddler.fields.title].tiddlers,function(constituentTiddler,constituentTitle) {
|
||||||
if(constituentTitle) {
|
// Save the tiddler object
|
||||||
shadowTiddlers[constituentTitle] = {
|
if(constituentTitle) {
|
||||||
source: tiddler.fields.title,
|
shadowTiddlers[constituentTitle] = {
|
||||||
tiddler: new $tw.Tiddler(constituentTiddler,{title: constituentTitle})
|
source: tiddler.fields.title,
|
||||||
};
|
tiddler: new $tw.Tiddler(constituentTiddler,{title: constituentTitle})
|
||||||
}
|
};
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user