Skip to content

Commit

Permalink
Tests: Fix reloading a datatable on the same page. The settings objec…
Browse files Browse the repository at this point in the history
…t could still be present.
  • Loading branch information
Allan Jardine committed Aug 22, 2016
1 parent 512b815 commit f821fe6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/html-loader-lib.js
Expand Up @@ -219,6 +219,10 @@ window.dt = {
}
}

if ( $ && $.fn.dataTableSettings && $.fn.dataTableSettings.length ) {
$.fn.dataTableSettings.length = 0;
}

return window.dt;
},

Expand Down

0 comments on commit f821fe6

Please sign in to comment.