code: function sendEvent(type, cancelable, details) {
        if (cancelable) {
          return !elements.some(function(el) {
            var event = new CustomEvent(type, {
              detail: details || {}
            });
            return !el.dispatchEvent(event);
          }, this);
        } else {
          elements.forEach(function(el) {
            var event = new CustomEvent(type, {
              detail: details || {}
            });
            el.dispatchEvent(event);
          }, this);
        }
      }
docs: /* Send DOM event to all elements. Will stop sending event and return
  if the previous one is canceled (for cancelable events).