On 4/4/07, Terence <[EMAIL PROTECTED]> wrote:
>
> Hi, I just loaded this thing up for the first time and my JS console
> gives a warning that says
> Warning: assignment to undeclared variable MochiKit
> Source file: http://localhost/spud/js/MochiKit/MochiKit.js
> Line: 12
>
> Anyway, I hacked in the "var' keyword and it is OK now. I just find it
> strange that no one has seen this before, it is such a simple
> solution.

The excessive warnings are not on by default. "Fixing" them would
actually break IE support due to really obscure bugs in JScript. Turn
the excessive warnings of, they're not going to tell you about any
actual problems in MochiKit.

> ANYWAYS.... ;)
> document.write not work when Content-Type: text/xml (XHTML in this
> case)
> So that pretty much screws MochiKit for XHTML. I assume this issue has
> aleady been discussed or something? Should I assume that no one found
> any solutions?

No it doesn't. Include each file individually or use the packed
distribution. MochiKit.js in the unpacked distribution is *just* a
loader that can be useful in development (but definitely should not be
used in production), it doesn't provide any functionality whatsoever.

-bob

--~--~---------~--~----~------------~-------~--~----~
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