1
0
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:
Jermolene
2014-04-06 22:43:10 +01:00
parent 8a7d0f53d3
commit 1e960ffcac
2 changed files with 20 additions and 20 deletions

View File

@@ -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) {