On Nov 3, 7:44 am, howa <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want re-organize the jquery namespace into a more meaningful
> namespace, but I can't make it success, e.g.
>
> <html>
> <head>
> <script src="jquery-1.2.1.pack.js"></script>
> <script>
>         var company = {};
>         var company.animation = {}; // Why this didn't work?
>         company.query = jQuery.noConflict(true);
> </script>
> </head>
>
> <body>
>
> <script>
>         company.query (
>                 function() {
>                         alert('test');
>                 }
>         );
> </script>
>
> </body></html>
>
> If I removed the `var company.animation ..`, then code works but I
> don't know what's wrong with it...

You're redefining company with:
var company.animation = {};

Just take off the var and it will work.

Reply via email to