From b05e7e82da79ff7070df5ceaa6cbf9e2c27de470 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 11 Feb 2012 20:11:26 +0000 Subject: [PATCH] Now passing store to the other parser constructors --- js/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/App.js b/js/App.js index 114e41b77..3ce39d266 100644 --- a/js/App.js +++ b/js/App.js @@ -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);