MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / invokeEvent

Function invokeEvent

experimental/scripting/deprecated/bscript.js:92–102  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

90 var stg = stage;
91 var ctx = new CCLScripting.ScriptingContext(stage);
92 var invokeEvent = function(event, data){
93 if(listeners[event]){
94 for(var i = 0; i < listeners[event].length; i++){
95 try{
96 listeners[event][i](data);
97 }catch(e){
98 console.log(e);
99 }
100 }
101 }
102 };
103 this.clear = function(){
104 ctx.clear();
105 for(var i = 0; i < workers.length; i++){

Callers 1

bscript.jsFile · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected