mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 09:13:38 -08:00
Now passing store to the other parser constructors
This commit is contained in:
parent
c100b434f9
commit
b05e7e82da
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ var App = function() {
|
|||
this.store = new WikiStore();
|
||||
// Register the parsers
|
||||
this.store.registerParser("text/x-tiddlywiki",new WikiTextParser({store: this.store}));
|
||||
this.store.registerParser("application/json",new JSONParser());
|
||||
var imageParser = new ImageParser();
|
||||
this.store.registerParser("application/json",new JSONParser({store: this.store}));
|
||||
var imageParser = new ImageParser({store: this.store});
|
||||
this.store.registerParser("image/svg+xml",imageParser);
|
||||
this.store.registerParser("image/jpg",imageParser);
|
||||
this.store.registerParser("image/jpeg",imageParser);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue