MCPcopy
hub / github.com/ecomfe/echarts-wordcloud / sendEvent

Function sendEvent

src/layout.js:1106–1122  ·  view source on GitHub ↗
(type, cancelable, details)

Source from the content-addressed store, hash-verified

1104 /* Send DOM event to all elements. Will stop sending event and return
1105 if the previous one is canceled (for cancelable events). */
1106 var sendEvent = function sendEvent(type, cancelable, details) {
1107 if (cancelable) {
1108 return !elements.some(function (el) {
1109 var event = new CustomEvent(type, {
1110 detail: details || {}
1111 });
1112 return !el.dispatchEvent(event);
1113 }, this);
1114 } else {
1115 elements.forEach(function (el) {
1116 var event = new CustomEvent(type, {
1117 detail: details || {}
1118 });
1119 el.dispatchEvent(event);
1120 }, this);
1121 }
1122 };
1123
1124 /* Start drawing on a canvas */
1125 var start = function start() {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected