DataTables / TableTools

Please note that TableTools has now been retired and replaced by the Buttons and Select extensions which offers significant improvements and API integration with the rest of DataTables and the other extensions.
http://datatables.net/
Other
237 stars 149 forks source link

Add optional Event argument to addCallbacks function #14

Closed timbonicus closed 12 years ago

timbonicus commented 12 years ago

I'm using IE8 with Flash player version 11.2.202.235. After a period of idling, a flash player message will pop up with the error: ArgumentError: Error #1063: Argument count mismatch on ZeroClipboard/addCallbacks(). Expected 0, got 1. The addCallbacks function is registered with stage.addEventListener, which calls back with an Event object as a parameter. The addCallbacks function as defined in the ZeroClipboard files has no arguments; this dichotomy creates the above error. I've added the Event object as an optional argument to match both callbacks.

DataTables commented 12 years ago

Thanks for the patch!

I've decided to take the slightly unusual step of releasing a release with this merge - TableTools 2.1.2 has been available for less than 12 hours and I think this is important enough to go into a release as soon as possible. So this is now in 2.1.2, available on the DataTables web-site.