On Jul 28, 2006, at 10:56 AM, Peter Mularien wrote:
>
> Ah, a challenge.
>
> I'll paste the code below. I simplified the use case I ran into it
> with, so this doesn't make a lot of sense semantically, but it does
> illustrate the error. If I'm using the MK functions wrong, I apologize
> in advance :)
>
> You'll have to set up the path to the MochiKit.js file as appropriate
> on your system.
>
> The error you get is:
> ERROR: [object DOMException] NO_MODIFICATION_ALLOWED_ERR 7
>
> As I mentioned, we've tested this on most/all other browsers, I can
> post over at the Opera forums, but I figured I'd ask here first.
You really shouldn't be calling bindMethods() on a DOM object anyway.
Don't try and screw with objects that you didn't write. Changing
every method on an object seems like a pretty unexpected result from
making something hideable anyway.
The $("testdiv").hide() usage doesn't require bound methods, but if
you are using it in a way where you need bound methods you could do
it in makeHideable.. e.g.
element.hide = bind(function () { ... }, element);
Though personally I would have just used hide/show functions instead
of trying to make them methods of some DOM objects...
-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
-~----------~----~----~----~------~----~------~--~---