Skip to content
Snippets Groups Projects
Commit b99ec619 authored by Harumi Jang's avatar Harumi Jang Committed by Lauri Timmanee
Browse files

Issue #3238863 by hooroomoo: Refactor (if feasible) uses of the jQuery merge...

Issue #3238863 by hooroomoo: Refactor (if feasible) uses of the jQuery merge function to use vanillaJS
parent 9da1866d
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@
"jquery/no-is": 0,
"jquery/no-load": 2,
"jquery/no-map": 0,
"jquery/no-merge": 0,
"jquery/no-merge": 2,
"jquery/no-param": 2,
"jquery/no-parent": 0,
"jquery/no-parents": 0,
......
......@@ -1320,7 +1320,7 @@
if (this.indentEnabled) {
this.indents = $tableRow.find('.js-indentation').length;
this.children = this.findChildren(addClasses);
this.group = $.merge(this.group, this.children);
this.group = this.group.concat(this.children);
// Find the depth of this entire group.
for (let n = 0; n < this.group.length; n++) {
this.groupDepth = Math.max(
......
......@@ -780,7 +780,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
if (this.indentEnabled) {
this.indents = $tableRow.find('.js-indentation').length;
this.children = this.findChildren(addClasses);
this.group = $.merge(this.group, this.children);
this.group = this.group.concat(this.children);
for (var n = 0; n < this.group.length; n++) {
this.groupDepth = Math.max($(this.group[n]).find('.js-indentation').length, this.groupDepth);
......
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