jquery ui - TableTools code giving DataTables warning message when application built with r.js -
i having problem building application includes tabletools. using r.js , build line is
e:\software\nodejs\node r.js -o build.js the build.js is
({ 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" }) note have flattened of directories make easier investigate.
when load test application, message
warning: tabletools 2 requires datatables 1.9.0 or newer ... i pretty sure datatables correctly specified in build. seem when check in tabletools code done datatables doesn't seem have been loaded/initialised. if put break point @ line
if ( typeof $.fn.datatable == "function" && in external.min.js , step through, won't popup warning. datatables looks have been correctly initialised putting in breakpoint , stepping through. if remove tabletools loads fine - datatables there.
this can happen due several reason mentioned below,
you using previous versions of data-tables.
not mentioning data tables in build.
older browser version or browser not supporting data-tables.
slow internet.
Comments
Post a Comment