ScriptCraft

ScriptCraft

14.6k Downloads

Event Object

grimmdev opened this issue ยท 2 comments

commented

I'm essentially curious how to get all the keys and values of the event object. I tried a few javascript methods which didn't workout and the utils.foreach. Is there a way to loop through the event object to get the keys and values available?

commented
var evtName, evtHandlerFn;
for (evtName in events){
   console.log( evtName );
   evtHandlerFn = events[evtName];
}
commented

Thank you walter, I also wanted to say good work, I love the plugin so far. I already started making things and stuff with it.