Skip to content
Snippets Groups Projects

Issue #3264928: Add support for Drupal 10

Merged Jeroen Tubex requested to merge issue/diff-3264928:3264928-add-support-for into 8.x-1.x
1 unresolved thread
Files
8
+ 4
3
(function ($, Drupal, drupalSettings) {
(function ($, Drupal, drupalSettings, once) {
'use strict';
'use strict';
@@ -6,7 +6,8 @@
@@ -6,7 +6,8 @@
attach: function (context, settings) {
attach: function (context, settings) {
// drupalSettings in not anymore bound to attached functions.
// drupalSettings in not anymore bound to attached functions.
// It is available outside the scope of this anonymous function also.
// It is available outside the scope of this anonymous function also.
var $rows = $('table.diff-revisions tbody tr').once('diff-revisions');
var rows = once('diff-revisions', 'table.diff-revisions tbody tr');
 
var $rows = $(rows);
if ($rows.length === 0) {
if ($rows.length === 0) {
return;
return;
}
}
@@ -66,4 +67,4 @@
@@ -66,4 +67,4 @@
}
}
};
};
})(jQuery, Drupal, drupalSettings);
})(jQuery, Drupal, drupalSettings, once);
Loading