Hi.

I use MochiKit with script.aculo.us in a project based on Ruby on
Rails.
Because some functions of script.aculo.us don't work with MochiKit in
export mode,
I have to turn off the export feature.

However, used without export feature,
MochiKit.Visual.roundElement(e) doesn't work and shows error message,
such as
---
error: repr is not defined
source file: http://example.com/javascripts/MochiKit/Selector.js
line: 131
---

After I fixed it by replacing "repr" with
"MochiKit.Selector.Selector.prototype.repr" (see below), the next error
occured, which was the following.
---
error: this.initialize has no properties
source file: http://example.com/javascripts/prototype.js
line: 20
---

How can I get roundElement working in non-export mode?


The following is what I fix in Selector.js.
130 if (clause = params.tagName) {
131 -   conditions.push('element.tagName.toUpperCase() == ' +
repr(clause));
131 +  conditions.push('element.tagName.toUpperCase() == ' +
MochiKit.Selector.Selector.prototype.repr(clause));
132 }

---
Kentaro KAWAMOTO
mailto:[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to