dispatch for a SimpleEvent no longer throws any errors a listener throws an error, instead it will console.error the error and continue running the remaining listeners.
Breaking changes
N/A
Changes Proposed
Adds try {} catch (error) {} to dispatch in events.ts
Adds test for to see if dispatch will run through all listeners if one listener throws an error (which just so happens to also be a test to see if dispatch will throw any errors)
Fix / Feature for issue #58
dispatch
for aSimpleEvent
no longer throws any errors a listener throws an error, instead it willconsole.error
the error and continue running the remaining listeners.Breaking changes
Changes Proposed
try {} catch (error) {}
todispatch
inevents.ts
dispatch
will run through all listeners if one listener throws an error (which just so happens to also be a test to see ifdispatch
will throw any errors)