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

Commit d76137c

Browse files
committed
Correction bug "'destroy' of undefined" #235
1 parent 6841a9b commit d76137c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/angular-datatables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ function dtRendererService(DTLoadingTemplate) {
745745

746746
function renderDataTable($elem, options) {
747747
var dtId = '#' + $elem.attr('id');
748-
if ($.fn.dataTable.isDataTable(dtId)) {
748+
if ($.fn.dataTable.isDataTable(dtId) && angular.isObject(options)) {
749749
options.destroy = true;
750750
}
751751
// See http://datatables.net/manual/api#Accessing-the-API to understand the difference between DataTable and dataTable

0 commit comments

Comments
 (0)