backplanespecs/backplane-core — comment on commit ab95efff75a5aab2c41663d6c1d2e890b6763a92
File:  line 0
By gobengo:

A code review of this (my code) may be useful.

Specifically I'm curious about whether this will be resilient to added onInit function throwing exceptions. Just realized that, because of the way onInit functions are added by nesting functions and closures, if one of the function raises an uncaught Exception, it could prevent other functions from getting executed.

A better way may be just to maintain an Array of callbacks, then iterate through the list, calling each function and either throwing away or logging any exceptions.

Thoughts?