Google Closure compiler with DataPlugin

Google Closure compiler with DataPlugin

harshgharshg Posts: 1Questions: 0Answers: 0
edited March 2013 in General
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
This discussion has been closed.