Bug: tr:even and tr:even (colon) should be tr.even and tr.odd (dot)?
Bug: tr:even and tr:even (colon) should be tr.even and tr.odd (dot)?
KKelly
Posts: 2Questions: 0Answers: 0
In the datatables source, shouldn't the search for tr:even and tr:odd (with a colon), be tr.even and tr.odd (with a dot)? They throw an exception in Opera.
This discussion has been closed.
Replies
https://github.com/DataTables/DataTables/blob/master/media/js/jquery.dataTables.js#L5348
:even and :odd are jQuery selectors ( http://api.jquery.com/even-selector/ ) and my intention with that particular code was to get the odd and even rows and so I believe the code is correct (indeed the odd and even classes will already have been removed by the destroy at that point).
I've just tested this in Opera 11.52 and 12.00 (Mac) and I'm not seeing any errors on the console. Perhaps you can link me to a test case showing the issue please?
Allan
Regards,
Allan