@trops/dash-core 0.1.254 → 0.1.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -142,7 +142,9 @@ var DashboardPublisher = {
142
142
  if (isObject(listeners) === true) {
143
143
  Object.keys(listeners).forEach(function (handlerKey) {
144
144
  if (handlerKey in listeners) {
145
- listeners[handlerKey].forEach(function (event) {
145
+ var events = listeners[handlerKey];
146
+ if (!Array.isArray(events)) return;
147
+ events.forEach(function (event) {
146
148
  // subscribe our listeners
147
149
  DashboardPublisher.sub(event, handlerMap[handlerKey], uuid);
148
150
  });