Probable bug - attempt to access global variable from within closure
Probable bug - attempt to access global variable from within closure
colemanw
Posts: 3Questions: 1Answers: 0
On line 8806 the DataTable.tables function attempts to access jQuery (the global variable) instead of $ (the local variable). This causes a fatal error on sites that use the jQuery.noConflict() method or otherwise have a different way of accessing jQuery. Changing jQuery to $ fixes the problem and the function continues to work as expected.
This discussion has been closed.
Answers
We are tracking this bug internally at https://issues.civicrm.org/jira/browse/CRM-15502
and here is the patch which fixes it:
PR submitted: https://github.com/DataTables/DataTables/pull/437
Agreed - thanks for flagging this up. I've committed the required change now.
Allan