altjs / utils

A collection of utils for alt.js
37 stars 25 forks source link

Passing undefined functions to ActionListeners causes silent failure #5

Open maximilianschmitt opened 8 years ago

maximilianschmitt commented 8 years ago
actionListeners. addActionListener(alt.actions.UserActions.LOGIN, somethingUndefined);

If somethingUndefined is undefined, it will cause a silent failure. No error is logged and other listeners for UserActions.LOGIN are not triggered.