Change Reader API to use events, remove messaging.

This commit is contained in:
Ascrod 2018-05-13 09:35:23 -04:00 • committed by Roy Tam
commit f0af6dce04
4 changed files with 50 additions and 151 deletions

View file

@ -16,8 +16,7 @@ this.EXPORTED_SYMBOLS = ["NarrateControls"];
var gStrings = Services.strings.createBundle("chrome://global/locale/narrate.properties");
function NarrateControls(mm, win, languagePromise) {
this._mm = mm;
function NarrateControls(win, languagePromise) {
this._winRef = Cu.getWeakReference(win);
this._languagePromise = languagePromise;