I am trying to handle external library (Kloudless) events inside my app template yet I am not sure what is the best way to add the library events to my app template. So far using the code below, I am always getting error:
Uncaught TypeError: Cannot read property 'on' of null
Any thought what I might be doing wrong / missing here? Thanks for your time.
thx for your help but the event I am addressing here doesn’t match any of Template.events types, for example I am trying to register on.success event or on.finishFileUpload event, which I can’t figure out how to register those events under the Template.events…make sense? thx again
well, your explorer var is null apparently, so why not try to register the events within the template render function after you assign a valid thing to explorer? i know this is different from ensuring that the events you are registering callbacks for are observed by the template…which sounds equally as important