@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.js CHANGED
@@ -160,7 +160,9 @@ var DashboardPublisher = {
160
160
  if (DashReact.isObject(listeners) === true) {
161
161
  Object.keys(listeners).forEach(function (handlerKey) {
162
162
  if (handlerKey in listeners) {
163
- listeners[handlerKey].forEach(function (event) {
163
+ var events = listeners[handlerKey];
164
+ if (!Array.isArray(events)) return;
165
+ events.forEach(function (event) {
164
166
  // subscribe our listeners
165
167
  DashboardPublisher.sub(event, handlerMap[handlerKey], uuid);
166
168
  });