From 6a817e575d55daec146203e7ef8929fdfd81bace Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 3 Jan 2015 17:16:43 +0000 Subject: Modes; fix SingletonMode.. --- content_scripts/mode.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content_scripts/mode.coffee') diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index 9126a824..a19c3df0 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -66,12 +66,12 @@ class SingletonMode extends Mode @instances: {} exit: -> - delete SingletonMode[@singleton] + delete SingletonMode.instances[@singleton] super() constructor: (@singleton, options={}) -> - SingletonMode[@singleton].exit() if SingletonMode[@singleton] - SingletonMode[@singleton] = @ + SingletonMode.instances[@singleton].exit() if SingletonMode.instances[@singleton] + SingletonMode.instances[@singleton] = @ super options # MultiMode is a collection of modes which are installed or uninstalled together. -- cgit v1.2.3