fnGetData return inconsistent error message
fnGetData return inconsistent error message
Hi,
I know this is not a big deal but when you use the [code]fnGetData[/code] method, giving a jQuery object instead of a simple HTMLElement object (the TR node) the method will throw an exception which is not very relevant : "Uncaught TypeError: Cannot call method 'toLowerCase' of undefined". I think it could be a good think to add a test for jQuery object (and eventually retrieve the first element [0] in the case of .length > 0). At the same time, it could be a good think to manage an more relevant error message. What do you think ..?
Regards,
Mat
I know this is not a big deal but when you use the [code]fnGetData[/code] method, giving a jQuery object instead of a simple HTMLElement object (the TR node) the method will throw an exception which is not very relevant : "Uncaught TypeError: Cannot call method 'toLowerCase' of undefined". I think it could be a good think to add a test for jQuery object (and eventually retrieve the first element [0] in the case of .length > 0). At the same time, it could be a good think to manage an more relevant error message. What do you think ..?
Regards,
Mat
This discussion has been closed.
Replies
This is already available in the 1.10 WIP branch on github if you want to try it out, but there is no documentation for 1.10's API yet (hence why its not been released...).
Allan