Bug 1094137 - Create a common shared store creator for Loop. r=Standard8

This commit is contained in:
Nicolas Perriault
2014-11-19 14:59:08 +00:00
parent 7bf7fc50c7
commit 97062ecc32
31 changed files with 408 additions and 289 deletions

View File

@@ -845,9 +845,8 @@ loop.panel = (function(_, mozL10n) {
var client = new loop.Client();
var notifications = new sharedModels.NotificationCollection();
var dispatcher = new loop.Dispatcher();
var roomStore = new loop.store.RoomStore({
mozLoop: navigator.mozLoop,
dispatcher: dispatcher
var roomStore = new loop.store.RoomStore(dispatcher, {
mozLoop: navigator.mozLoop
});
React.renderComponent(PanelView({