I find bug in dataTable buttons.

I find bug in dataTable buttons.

Denin2004Denin2004 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.

Answers

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin

    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

This discussion has been closed.