I am using jQuery plugin and Google Closure compiler. The problem is that an error appears in the plug-in, when I add the URL of this plug-in to compilation, compilation fails. So I want to create extern for this plugin. Basically, I use only 1 object and 2 methods from the entire library; something like that:
var TheObject = $.plugin({...}); var SomeVar = TheObject.someName.otherName(SomeString, { prop1: [...], onError: function () {...} }); TheObject.SomeMethod();
I looked at the document on the Google website, but it wrote from a confusing point of view βwhat is it,β and I need a simple βpracticalβ perspective on how to do this. What do I need to do to create extern for what I have?
Thanks.
javascript google-closure-compiler
frenchie
source share