pluginfw: accept 'null' as a hook-result, as this is needed by handleMessage

This commit is contained in:
luto 2014-06-12 13:33:17 +02:00
parent cd294c608b
commit f70309645c

View file

@ -8,7 +8,7 @@ var hookCallWrapper = function (hook, hook_name, args, cb) {
// Normalize output to list for both sync and async cases // Normalize output to list for both sync and async cases
var normalize = function(x) { var normalize = function(x) {
if (x == undefined) return []; if (x === undefined) return [];
return x; return x;
} }
var normalizedhook = function () { var normalizedhook = function () {