Skip to content
Snippets Groups Projects
Commit 004fb83d authored by Vladimir Roudakov's avatar Vladimir Roudakov Committed by Vladimir Roudakov
Browse files

Issue #3301223 by omkar-pd, VladimirAus: Drupal 10 compatibility

parent 7ae63764
No related branches found
Tags 8.x-2.0-alpha7
No related merge requests found
......@@ -27,7 +27,7 @@
Drupal.behaviors.navTabs = {
attach(context) {
once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context)
.each((i, value) => {
.forEach((i, value) => {
$(value).each(init);
});
},
......
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal, once) {
function init(i, tab) {
......@@ -23,7 +23,7 @@
Drupal.behaviors.navTabs = {
attach: function attach(context) {
once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context).each(function (i, value) {
once('nav-tabs', '[data-drupal-nav-tabs].is-collapsible', context).forEach(function (i, value) {
$(value).each(init);
});
}
......
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