diff options
| author | Stephen Blott | 2016-03-04 06:30:09 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-04 06:30:09 +0000 | 
| commit | 36d9b07f7617b18706f9523cfee121a0e2cf61b0 (patch) | |
| tree | ce64d6228ca0a893c26c916c86b89bcdd914c3ea /content_scripts/mode.coffee | |
| parent | 7f0fccf363ce887d8d9b1b92494ab94547931150 (diff) | |
| download | vimium-36d9b07f7617b18706f9523cfee121a0e2cf61b0.tar.bz2 | |
Do not use standalone @.
The styles guide says not to use standalone `@`.  So this changes the
occurrences I could find (with sed) to `this`.  Occurrences within files
with major outstanding PRs are omitted.
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index 782328ce..454a6ed9 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -117,7 +117,7 @@ class Mode          key = Utils.getIdentity @options.singleton          @onExit -> delete singletons[key]          @deactivateSingleton @options.singleton -        singletons[key] = @ +        singletons[key] = this      # If @options.trackState is truthy, then the mode mainatins the current state in @enabled and @passKeys,      # and calls @registerStateChange() (if defined) whenever the state changes. The mode also tracks the @@ -164,7 +164,7 @@ class Mode            keypress: handler            keyup: -> handlerStack.stopBubblingAndFalse -    Mode.modes.push @ +    Mode.modes.push this      @setIndicator()      @logModes()      # End of Mode constructor. @@ -194,7 +194,7 @@ class Mode          @modeIsExiting = true          handler args... for handler in @exitHandlers          handlerStack.remove handlerId for handlerId in @handlers -      Mode.modes = Mode.modes.filter (mode) => mode != @ +      Mode.modes = Mode.modes.filter (mode) => mode != this        @modeIsActive = false        @setIndicator() | 
