aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-01-03 17:16:43 +0000
committerStephen Blott2015-01-03 17:16:43 +0000
commit6a817e575d55daec146203e7ef8929fdfd81bace (patch)
treea57bf9f031f969975542299c9af0d4dce406d076
parentc67586154625065804d14c0fb8897447391f45b4 (diff)
downloadvimium-6a817e575d55daec146203e7ef8929fdfd81bace.tar.bz2
Modes; fix SingletonMode..
-rw-r--r--content_scripts/mode.coffee6
1 files changed, 3 insertions, 3 deletions
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.