projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59f11b
)
kivi.run: leeres Array (keine Argumente) nutzen, wenn args nicht übergeben wird
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 28 Feb 2017 10:17:41 +0000
(11:17 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 28 Feb 2017 10:17:41 +0000
(11:17 +0100)
js/kivi.js
patch
|
blob
|
history
diff --git
a/js/kivi.js
b/js/kivi.js
index
542c663
..
31e7bb4
100644
(file)
--- 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;