Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82117

Google Closure compiler with DataPlugin

$
0
0
I'm trying to integrate jQuery DataPlugin into my project, which uses Google Closure Compiler.

While compiling the code, I'm getting following error:
WARNING - Property dataTable1 never defined on jQuery $('#example').dataTable();

I understand this is happening because of obfuscation done by Closure Compiler. Moreover, this error goes away if I add the dataTable symbol as an external symbol for closure compiler, because then the compiler would not obfuscate the above symbol.

My problem is that for every symbol that I would use of DataTable plugin, I've to add that symbol as the external symbol in my project.

Is there are better way to solve this problem?

Thanks!
Harsh Gupta

Viewing all articles
Browse latest Browse all 82117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>