in closure I selected Jquery from the URL and tried this specific code.

$(function() { alert(true); });

they were no errors.
but 3 warnings.
I also noticed it takes considerably longer to compile JavaScript as it
compiles the whole Jquery library along with your script.
Shouldn't it compile your script only since jquery.min is a compiled file ?

*Number of warnings: 3*
JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a
bug? at line 988 character 3 in
jquery.js<view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js>
if ( name == "selected" && elem.parentNode )
^
JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a
bug? at line 989 character 4 in
jquery.js<view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js>
elem.parentNode.selectedIndex;
^
JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a
bug? at line 1866 character 3 in
jquery.js<view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js>
elem.parentNode.selectedIndex;
^
On Mon, Nov 9, 2009 at 3:23 AM, Diego Desani <ddes...@gmail.com> wrote:

> Tks! =)
>
> On 7 nov, 16:47, Jake B <jakeboon...@gmail.com> wrote:
> > If you look at the online version of the compiler, you'll see that
> > jQuery, jQuery UI, and other popular libraries are options in the "Add
> > a URL" dropdown menu:
> >
> > http://closure-compiler.appspot.com/home
> >
> > I assume that means that Google anticipates Closure being used in
> > conjunction with those existing libraries.
> >
> > On Nov 6, 1:55 pm, claya <clakac...@gmail.com> wrote:> Any thoughts on
> the Google closures tools release announcement.
> >
> > >http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html
> >
> > > Will jQuery work with it? is it better?
>

Reply via email to