This is a very well known weirdness... just don't put the comma in the last
element of the object literal expression.

On Fri, Feb 13, 2009 at 5:50 PM, Chad <[email protected]> wrote:

>
> I'm developing some "more complex" javascript stuff using Mootools.
> I'm trying to take advantage of Mootools Classes. I pretty much
> develop in Firefox to take advantage of firebug. I just started
> testing in IE and I'm seeing some weird results. I'm running IE 7 in a
> windows XP VM on Mac so perhaps that's the problem... IE 8 RC1 seems
> to work ok but IE 6 also doesn't work.
>
> Here's what I'm seeing..
>
> <script type="text/javascript" src="http://cof.com/mootools-1.2.1-core-
> nc.js"></script>
> <script>
>        var c = new Class({
>                foo3 : "xx",
>        });
>        v = new c();
>        alert(v.foo3);
> </script>
>
> Result.. Nothing happens..
>
> However, if I remove the comma all the sudden it starts working..
>
> I'm seeing some other weird stuff in IE7. Just curious if anyone has
> thoughts/experience on mootools and IE.




-- 
Guillermo Rauch
http://devthought.com

Reply via email to