mootools: $ not defined

Posted by eaigner on Stack Overflow See other posts from Stack Overflow or by eaigner
Published on 2010-03-13T21:29:56Z Indexed on 2010/03/13 21:35 UTC
Read the original article Hit count: 182

Filed under:
|

I've strange error i don't understand. I'm just moving my code from jQuery over to Mootools because it's much cleaner than the jQuery mess.

Now when i use the

$$('div.canvas')

in mootools i get the correct element.

When i try

$(document).getElement('div.canvas')

it tells me that $ is not defined. How can $$ and all helper functions like $lambda etc. be defined but not $?

Has something changed there from 1.1 to 1.2 and the docs are not updated yet?

© Stack Overflow or respective owner

Related posts about mootools

Related posts about JavaScript