mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +00:00
Now passing store to the other parser constructors
This commit is contained in:
@@ -26,8 +26,8 @@ var App = function() {
|
|||||||
this.store = new WikiStore();
|
this.store = new WikiStore();
|
||||||
// Register the parsers
|
// Register the parsers
|
||||||
this.store.registerParser("text/x-tiddlywiki",new WikiTextParser({store: this.store}));
|
this.store.registerParser("text/x-tiddlywiki",new WikiTextParser({store: this.store}));
|
||||||
this.store.registerParser("application/json",new JSONParser());
|
this.store.registerParser("application/json",new JSONParser({store: this.store}));
|
||||||
var imageParser = new ImageParser();
|
var imageParser = new ImageParser({store: this.store});
|
||||||
this.store.registerParser("image/svg+xml",imageParser);
|
this.store.registerParser("image/svg+xml",imageParser);
|
||||||
this.store.registerParser("image/jpg",imageParser);
|
this.store.registerParser("image/jpg",imageParser);
|
||||||
this.store.registerParser("image/jpeg",imageParser);
|
this.store.registerParser("image/jpeg",imageParser);
|
||||||
|
Reference in New Issue
Block a user