On Thu, Dec 18, 2008 at 1:56 AM, Matteo Pelucco (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

>
> Hi nutron,
> thanks for your help.
> In my code I include MooTools as first <script> tag.
> Then I include the guilty code, wich cause other MooTools script to
> fail.
> So, $ function is defined and the code
>
> typeof $ != 'function'
>
> says "true", on every browser.
> So, the function $ should not to be redefined, isn't it?
>
> I can not understand why this piece of script touch MooTools...
>

 I'm not sure why this isn't working. You might instead do

if (!window.$)

But that might not solve your problem. What happens if you log the value of
window.$ at the time of that conditional? What does the browser say it is at
that point?


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/MooTools-and-Magnolia-CMS-tp1667374p1673733.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to