diff options
| author | mrmr1993 | 2014-12-13 17:18:52 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-13 17:18:52 +0000 |
| commit | fa06a27b906a83c01ded4e0fe3b96e8e51a1a52d (patch) | |
| tree | 213d8be592aa9b4aa36967d018ac4f39caef066a | |
| parent | 1c33590eb994403ec8520c1c02bfb4fe63831745 (diff) | |
| download | vimium-fa06a27b906a83c01ded4e0fe3b96e8e51a1a52d.tar.bz2 | |
Simplify settings port cleanup logic
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index f7bd805d..62247c5c 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -61,10 +61,9 @@ settings = # settings object so we don't keep trying to connect to the extension even though it's gone away. @port.onDisconnect.addListener => @port = null - _get = @get # @get doesn't depend on @port, so we can continue to support it to try and reduce errors. for own property, value of this - @[property] = (->) if "function" == typeof value - @get = _get + # @get doesn't depend on @port, so we can continue to support it to try and reduce errors. + @[property] = (->) if "function" == typeof value and property != "get" get: (key) -> @values[key] |
