From 392ad0bd83c0da588419c247eb311e82887b2905 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Sat, 8 Dec 2018 19:14:40 +0100 Subject: [PATCH] fix PluginHost run method. callbacks have no return value and anyway we should not prevent to run subsequent plugins because one has failed. --- js/PluginHost.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/PluginHost.js b/js/PluginHost.js index 7c2a975e0..f76b73464 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -24,8 +24,9 @@ PluginHost = { //console.warn('PluginHost::run ' + name); if (typeof(this.hooks[name]) != 'undefined') - for (let i = 0; i < this.hooks[name].length; i++) - if (!this.hooks[name][i](args)) break; + for (let i = 0; i < this.hooks[name].length; i++) { + this.hooks[name][i](args); + } } };