From 525758a569e2829faaf7be306be79715cc61cb0e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Feb 2017 11:17:41 +0100 Subject: [PATCH] =?utf8?q?kivi.run:=20leeres=20Array=20(keine=20Argumente)?= =?utf8?q?=20nutzen,=20wenn=20args=20nicht=20=C3=BCbergeben=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/kivi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/kivi.js b/js/kivi.js index 542c663c2..31e7bb444 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -443,7 +443,7 @@ namespace("kivi", function(ns) { ns.run = function(function_name, args) { var fn = ns.get_function_by_name(function_name); if (fn) - return fn.apply({}, args); + return fn.apply({}, args || []); console.error('kivi.run("' + function_name + '"): No function by that name found'); return undefined; -- 2.20.1