]> git.gir.st - VimFx.git/commit
Improve commit e0ae646e
authorSimon Lydell <simon.lydell@gmail.com>
Wed, 24 Feb 2016 12:40:22 +0000 (13:40 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Wed, 24 Feb 2016 12:40:22 +0000 (13:40 +0100)
commit14d4662964db5846c4ee222e79b6e5166de075e3
treeef2abae9caf85b64338e6018c5ad1fbf27e10a14
parentf609344a4397ff102810b790051a00d62abdb24c
Improve commit e0ae646e

> Fix "invokeListener is not a function" uncaught errors

The commit indeed solved the above problem, but apparently replaced it with
another. When `invokeListener` has been `null`ed out, a copy of it can try to
reference things that also have been `null`ed out. So instead of storing copies
of it, we now check if the function exists before calling it. Otherwise, simply
do nothing. This commit also applies this to _all_ places `invokeListener` is
used.
extension/lib/message-manager.coffee
Imprint / Impressum