mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-05 04:18:01 +00:00
Fix problems with tiddlers called __proto__
Background: http://www.2ality.com/2012/01/objects-as-maps.html
This commit is contained in:
@@ -803,10 +803,10 @@ shadowTiddlers: Array of shadow tiddlers to be added
|
||||
$tw.Wiki = function(options) {
|
||||
options = options || {};
|
||||
var self = this,
|
||||
tiddlers = {}, // Hashmap of tiddlers
|
||||
tiddlers = Object.create(null), // Hashmap of tiddlers
|
||||
pluginTiddlers = [], // Array of tiddlers containing registered plugins, ordered by priority
|
||||
pluginInfo = {}, // Hashmap of parsed plugin content
|
||||
shadowTiddlers = options.shadowTiddlers || {}; // Hashmap by title of {source:, tiddler:}
|
||||
pluginInfo = Object.create(null), // Hashmap of parsed plugin content
|
||||
shadowTiddlers = options.shadowTiddlers || Object.create(null); // Hashmap by title of {source:, tiddler:}
|
||||
|
||||
// Add a tiddler to the store
|
||||
this.addTiddler = function(tiddler) {
|
||||
|
Reference in New Issue
Block a user