I am testing google clos-compiler and wants to compile facebox Plugin with the option "Advanced", an error occurs trying to find "aH".
Someone tried to compile this option using jQuery plugins with good results.
Thanks.
EDIT: Clearly, this is a reassignment of jQuery methods, but is it possible to enable jQuery and rename all methods the same way ?.
EDIT
sample code with the option "externs_url":
with closing compiler
js input 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);
js ouput 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);
source share