diff options
author | Marcel Klehr <mklehr@gmx.net> | 2014-06-12 14:59:46 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2014-06-12 14:59:46 +0200 |
commit | 71c7deecd98a7444090f0aa544e1c983202cacd2 (patch) | |
tree | 8adb8b96c06e0ce3e44febb44a47ee1ee89b6ff5 /src | |
parent | cd294c608b6ed5995928709311bfe3ff53d8e4b8 (diff) | |
parent | f70309645c800fe8ae66e178461980842532fd97 (diff) | |
download | etherpad-lite-71c7deecd98a7444090f0aa544e1c983202cacd2.zip |
Merge pull request #2175 from ether/fix-handleMessage
Pluginfw: Interpret hook return value `null` as `[null]` instead of `undefined`
see http://etherpad.org/doc/v1.4.0/#index_return_values
fixes dropping of messages in handleMessage
Diffstat (limited to 'src')
-rw-r--r-- | src/static/js/pluginfw/hooks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/pluginfw/hooks.js b/src/static/js/pluginfw/hooks.js index 106e9ce6..a8ac413f 100644 --- a/src/static/js/pluginfw/hooks.js +++ b/src/static/js/pluginfw/hooks.js @@ -8,7 +8,7 @@ var hookCallWrapper = function (hook, hook_name, args, cb) { // Normalize output to list for both sync and async cases var normalize = function(x) { - if (x == undefined) return []; + if (x === undefined) return []; return x; } var normalizedhook = function () { |