Skip to content

Commit 8535cba

Browse files
committed
d465757b36e0237b93a1fce05d553a3bb9ecd946 Dev: A little code golf to reduce size
Sync to source repo @d465757b36e0237b93a1fce05d553a3bb9ecd946
1 parent 09717cb commit 8535cba

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

datatables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
"src-repo": "http://github.com/DataTables/DataTablesSrc",
1313
"last-tag": "1.13.7",
14-
"last-sync": "7521d6f2bd98de2cde2e82dff82230c180eee722"
14+
"last-sync": "d465757b36e0237b93a1fce05d553a3bb9ecd946"
1515
}

js/jquery.dataTables.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8584,9 +8584,10 @@
85848584

85858585
if ( row._details ) {
85868586
row._details.each(function () {
8587-
var el = $(this);
8588-
if (el.children('td').length == 1) {
8589-
el.children('td[colspan]').attr('colspan', visible);
8587+
var el = $(this).children('td');
8588+
8589+
if (el.length == 1) {
8590+
el.attr('colspan', visible);
85908591
}
85918592
});
85928593
}

js/jquery.dataTables.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.dataTables.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

js/jquery.dataTables.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8527,9 +8527,10 @@ var __details_events = function ( settings )
85278527

85288528
if ( row._details ) {
85298529
row._details.each(function () {
8530-
var el = $(this);
8531-
if (el.children('td').length == 1) {
8532-
el.children('td[colspan]').attr('colspan', visible);
8530+
var el = $(this).children('td');
8531+
8532+
if (el.length == 1) {
8533+
el.attr('colspan', visible);
85338534
}
85348535
});
85358536
}

0 commit comments

Comments
 (0)