Skip to content

Commit f56222e

Browse files
committed
Use children instead of find
1 parent 1754ed8 commit f56222e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Griddly/Scripts/griddly.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,12 +1198,12 @@
11981198

11991199
// replaceWith is more performant, but using inner html allows us to maintain the tbody element which is potentially important for some other libraries
12001200
// https://github.com/programcsharp/griddly/issues/79
1201-
this.$element.find("tbody.data").html(html.find("tbody").html());
1201+
this.$element.find("tbody.data").html(html.children("tbody").html());
12021202

12031203
var tfoot = this.$element.find("tfoot");
12041204

1205-
if (tfoot.length && html.find("tfoot").length)
1206-
tfoot.replaceWith(html.find("tfoot"));
1205+
if (tfoot.length && html.children("tfoot").length)
1206+
tfoot.replaceWith(html.children("tfoot"));
12071207

12081208
var startRecord = this.options.pageNumber * this.options.pageSize;
12091209
this.$element.find(".griddly-summary").html('<span class="hidden-xs">Records</span> ' + (startRecord + (this.options.count ? 1 : 0)) + ' <span class="hidden-xs">through</span><span class="visible-xs">-</span> ' + (startRecord + currentPageSize) + " of " + this.options.count);

0 commit comments

Comments
 (0)