Note that there are some explanatory texts on larger screens.

plurals
  1. POgoogle closure compile jQuery Plugin
    primarykey
    data
    text
    <p>I'm testing <a href="http://closure-compiler.appspot.com/home" rel="nofollow noreferrer">google closure-compiler</a> and wanting to compile <a href="https://github.com/defunkt/facebox" rel="nofollow noreferrer">facebox Plugin</a> with the option "Advanced" , an error occurs the function trying to find "a.H".</p> <p>Has anyone tried to compile with this option jQuery plugins with a good result. </p> <p>Thank you.</p> <p><strong>EDIT:</strong> Clearly this re-naming the jQuery methods, but is it possible to include jQuery and re-name all methods equally?.</p> <p><strong>EDIT</strong></p> <p>example of code with the option "externs_url":</p> <p><a href="http://closure-compiler.appspot.com/home" rel="nofollow noreferrer">with closure-compiler</a></p> <p>js input code </p> <pre><code>// ==ClosureCompiler== // @output_file_name default.js // @formatting pretty_print // @compilation_level ADVANCED_OPTIMIZATIONS // @warning_level QUIET // @externs_url http://code.jquery.com/jquery-1.5.min.js // ==/ClosureCompiler== // ADD YOUR CODE HERE var test = function($, context) { var _self = this; _self.mymethod = function() { var lista = $("a", context); lista.attr("target", "_blank"); return lista.html(); }; return {"mymethod":_self.mymethod}; }.call({}, jQuery, context); </code></pre> <p>js ouput code</p> <pre><code>(function(b, c) { this.a = function() { var a = b("a", c); a.attr("target", "_blank"); return a.html() }; return{mymethod:this.a} }).call({}, jQuery, context); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload