I had a problem creating an application that includes TableTools. I am using r.js and the build line
E:\Software\nodejs\node r.js -o build.js
Build.js file
({ baseUrl: ".", paths: { 'jquery' : 'jquery-1.9.1', 'jquery-ui' : 'jquery-ui-1.10.3.custom', 'jquery.dataTables': 'jquery.dataTables', 'jquery.tableTools' : 'TableTools' }, name: "build_main", out: "external.min.js", optimize: "none" })
Please note that I have smoothed out all the directories to make it easier to explore.
When I download my test application, I get a message
Warning: TableTools 2 requires DataTables 1.9.0 or newer ...
I am sure that DataTables is correctly specified in the assembly. It would seem that when checking the code of TableTools, the DataTables data did not seem to be fully loaded / initialized. If I put a breakpoint on the line
if ( typeof $.fn.dataTable == "function" &&
in external.min.js and then go, it will not display a warning. Datatables looks properly initialized by simply inserting a breakpoint and going through it. If I delete TableTools, then everything will load fine - there are DataTables.
source share