I find bug in dataTable buttons.
I find bug in dataTable buttons.
Denin2004
Posts: 1Questions: 1Answers: 0
Hello!
I find bug:
When i destroy table with buttons, i get this error:
dataTables.buttons.js line 199: buttons[i] is undefined.
Your code:
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
this.remove( buttons[i].node );
}
You change array "buttons", when i > buttons.length button[i] become "undefined"
I change:
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
this.remove( buttons[0].node );
}
- this work fine.
This discussion has been closed.
Answers
What version of Buttons are you using please? This was an issue in older versions, but it shouldn't be a problem in the current 1.2.4 release.
Allan