Skip to content
Snippets Groups Projects
Commit f768eb76 authored by Robert Ragas's avatar Robert Ragas
Browse files

Issue #3404753 by viniciusrp: Replace the jQuery.once to once from core

parent e77987f3
No related branches found
No related tags found
1 merge request!13Issue #3404753 by viniciusrp: Replace the jQuery.once to once from core
(function ($, Drupal) {
(function ($, Drupal, once) {
'use strict';
Drupal.behaviors.kpiAnalyticsRenderMorris = {
attach: function (context, settings) {
$('div.morris_chart').once('renderChart').each(function () {
var uuid = $(this).attr('id'),
once("renderChart", "div.morris_chart").forEach(function (morris_chart_element) {
var uuid = $(morris_chart_element).attr('id'),
options = settings.kpi_analytics.morris.chart[uuid].options;
if (!options.plugin) {
......@@ -223,4 +223,4 @@
chart.options.isRenderedDiff = true;
}
})(jQuery, Drupal);
})(jQuery, Drupal, once);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment