Multiple versions of datatables JS in same page
Multiple versions of datatables JS in same page
Hi,
My issue is that we are using a template which includes an old version of datatables (1.9.4) and on a section of that page I tried to load 1.10.9 and it didn't overwrite $.fn.dataTable because it already exists
So I saw this post https://datatables.net/forums/discussion/22997/multiple-versions-of-datatables and started looking at the DT source code and from I can tell
1.10.9 checks for $.fn.dataTable whereas 1.10.10 seems to overwrite it regardless, which I prefer :D
Is this correct? I couldn't see anything mentioned in the release notes for 1.10.10 and wanted to check.
This question has an accepted answers - jump to answer
Answers
I think that's something I forgot to add to the release notes. Thanks for pointing it out.
I did introduce that behaviour in 1.10, but I came to the conclusion that it was just plain wrong. When I rewrote the loaders for AMD and CommonJS in 1.10.10 I also changed that behaviour for good old plain browsers.
So that is an intentional change and here to stay.
Allan
Makes sense to me, prefer this behavior anyway!
Thanks for the quick response