Thanks Sandy, this is great. Unfortunately, however, I cannot reassign " something" as there are things listening for events fired from it (not in my example). That's why I was hoping to find a way to swap out the prototype from underneath it, or something similar.
On Wednesday, November 13, 2013 1:22:05 AM UTC-5, Sanford Whiteman wrote: > > > If I later find out that something is a Cow, how can I change it to > > be so? I know the once frowned upon method of setting __proto__ > > works in non-IE, but is there another way, or through MooTools? I > > only need IE9+ support. > > MooTools can't do anything as deep as creating __proto__ where it > isn't supported, so in IE 9-10 you can't do in-place prototype > replacement, AFAIK. You can pass the current object into another > class's ctor pretty easily, though: > > http://jsfiddle.net/V88xD/3/ > > -- Sandy > > -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mootools-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.