Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 4f4387f

Browse files
committed
Merge branch 'zafra6-dev' into dev
2 parents e1de112 + c9e10e7 commit 4f4387f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/angular-datatables.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ function initAngularDataTables($log) {
8585
// -------------------------------------------------------------------------
8686
if (!remove && orig) {
8787
// insertBefore acts like appendChild if !arg[1]
88-
try {
88+
if (orig.contains(settings.nTableReinsertBefore)) {
8989
orig.insertBefore(table, settings.nTableReinsertBefore);
90-
} catch (ex) {
91-
$log.warn(ex);
90+
} else {
9291
orig.appendChild(table);
9392
}
9493
}

0 commit comments

Comments
 (0)