|
159 | 159 | tag.setAttribute('class', 'cly-heatmap-item');
|
160 | 160 | tag.setAttribute('data-value', map);
|
161 | 161 | tag.innerHTML = capitalize(map) + " Map";
|
162 |
| - Countly._internals.add_event(tag, "click", function(e) { |
| 162 | + Countly._internals.add_event_listener(tag, "click", function(e) { |
163 | 163 | var dropdowns = topbar.getElementsByClassName("cly-heatmap-dropdown");
|
164 | 164 |
|
165 | 165 | if (dropdowns.length) {
|
|
239 | 239 |
|
240 | 240 | deviceListDiv.appendChild(tag);
|
241 | 241 |
|
242 |
| - Countly._internals.add_event(tag, "click", function(e) { |
| 242 | + Countly._internals.add_event_listener(tag, "click", function(e) { |
243 | 243 | document.body.style.width = "100%";
|
244 | 244 | var grdMap = document.getElementById("cly-heatmap-scroll-grd-map");
|
245 | 245 | if (grdMap) {
|
|
316 | 316 | mainDiv.appendChild(deviceDropdown);
|
317 | 317 | mainDiv.appendChild(refresh);
|
318 | 318 |
|
319 |
| - Countly._internals.add_event(refresh, "click", function() { |
| 319 | + Countly._internals.add_event_listener(refresh, "click", function() { |
320 | 320 | dataCache = {};
|
321 | 321 | canvas.setAttribute("width", "0px");
|
322 | 322 | canvas.setAttribute("height", "0px");
|
|
348 | 348 | canvas.id = "cly-heatmap-canvas-map";
|
349 | 349 | document.body.appendChild(canvas);
|
350 | 350 |
|
351 |
| - Countly._internals.add_event(window, "resize", function() { |
| 351 | + Countly._internals.add_event_listener(window, "resize", function() { |
352 | 352 | canvas.setAttribute("width", "0px");
|
353 | 353 | canvas.setAttribute("height", "0px");
|
354 | 354 | var grdMap = document.getElementById("cly-heatmap-scroll-grd-map");
|
|
404 | 404 | shLabel.appendChild(shInput);
|
405 | 405 | shLabel.appendChild(shSpan);
|
406 | 406 | showHide.appendChild(shLabel);
|
407 |
| - Countly._internals.add_event(shInput, "click", function() { |
| 407 | + Countly._internals.add_event_listener(shInput, "click", function() { |
408 | 408 | showHeatMap = shInput.checked;
|
409 | 409 | addDataToWindow([{ "key": "showHeatMap", "value": showHeatMap }]);
|
410 | 410 |
|
|
430 | 430 |
|
431 | 431 | topbar.appendChild(showHide);
|
432 | 432 |
|
433 |
| - Countly._internals.add_event(document.body, "click", function(e) { |
| 433 | + Countly._internals.add_event_listener(document.body, "click", function(e) { |
434 | 434 | var dropdowns = topbar.getElementsByClassName("cly-heatmap-dropdown");
|
435 | 435 | if (dropdowns.length) {
|
436 | 436 | Object.keys(dropdowns).forEach((drop) => {
|
|
0 commit comments