It looks like the example is probably incorrect, it's marked as a
constructor so you may need to use the new operator.
var selector = new Selector(#someelementid);
On 12/14/07, Glin [EMAIL PROTECTED] wrote:
Hi
I tried to use selector example from Mochikit documentation:
var selector = MochiKit.Selector.Selector('#someelementid');
But I got this error:
this.parseExpression is not a function
It is on line 37 in Selector.js.
Should I initialize something before I use this module? Or is it a
bug?
PS: This module looks incredible, if I was able to use it, it could
save me a lot of pain and the resulting code would be much nicer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---