JQuery object context variable

JQuery object context variable

andywinsandywins Posts: 1Questions: 0Answers: 0
edited December 2013 in General
Curious if it's possible to specify the JQuery object for DataTables to use internally? There is the potential for my site to be operating multiple versions of JQuery at a time. Therefore, I do not use the "$" or "jQuery" selectors. Mass-replacing characters within jquery.dataTables.min.js doesn't seem as straight-forward as hoped.

Replies

  • allanallan Posts: 63,552Questions: 1Answers: 10,476 Site admin
    There isn't yet, but that sounds like a good idea to me. I'll add it in later on today and drop a note back here when committed.

    Allan
  • allanallan Posts: 63,552Questions: 1Answers: 10,476 Site admin
    Committed in now. The very last line includes the jQuery to use: https://github.com/DataTables/DataTables/blob/master/media/js/jquery.dataTables.js#L13961 . If you have a different jQuery alias you want to use, just put it in there and it will be aliased to `$` in the DataTables internals.

    Allan
  • allanallan Posts: 63,552Questions: 1Answers: 10,476 Site admin
    Small update - the commit above was incorrect... The functionality already existed, it just had to be done in the factory builder function, which I had clean forgotten about. The commit above broke the require.js loading of DataTables, now resolved.

    Allan
This discussion has been closed.