Browse Source

fix PluginHost run method.

callbacks have no return value and anyway we should not prevent
to run subsequent plugins because one has failed.
Gilles Grandou 1 year ago
parent
commit
392ad0bd83
1 changed files with 3 additions and 2 deletions
  1. 3 2
      js/PluginHost.js

+ 3 - 2
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);
+			}
 	}
 };