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

Commit 8950214

Browse files
committed
Minify files #310
1 parent 4f4387f commit 8950214

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dist/angular-datatables.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ angular.module('datatables', ['datatables.directive', 'datatables.factory'])
545545
.run(initAngularDataTables);
546546

547547
/* @ngInject */
548-
function initAngularDataTables($log) {
548+
function initAngularDataTables() {
549549
if ($.fn.DataTable.Api) {
550550
/**
551551
* Register an API to destroy a DataTable without detaching the tbody so that we can add new data
@@ -626,10 +626,9 @@ function initAngularDataTables($log) {
626626
// -------------------------------------------------------------------------
627627
if (!remove && orig) {
628628
// insertBefore acts like appendChild if !arg[1]
629-
try {
629+
if (orig.contains(settings.nTableReinsertBefore)) {
630630
orig.insertBefore(table, settings.nTableReinsertBefore);
631-
} catch (ex) {
632-
$log.warn(ex);
631+
} else {
633632
orig.appendChild(table);
634633
}
635634
}
@@ -664,7 +663,6 @@ function initAngularDataTables($log) {
664663
});
665664
}
666665
}
667-
initAngularDataTables.$inject = ['$log'];
668666

669667
'use strict';
670668
angular.module('datatables.options', [])

0 commit comments

Comments
 (0)