From f70309645c800fe8ae66e178461980842532fd97 Mon Sep 17 00:00:00 2001 From: luto Date: Thu, 12 Jun 2014 13:33:17 +0200 Subject: [PATCH] pluginfw: accept 'null' as a hook-result, as this is needed by handleMessage --- src/static/js/pluginfw/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pluginfw/hooks.js b/src/static/js/pluginfw/hooks.js index 106e9ce68..a8ac413f6 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 () {