On Dec 1, 7:36 pm, yoshi <[EMAIL PROTECTED]> wrote:
> hi all,
> the fowllowing js is causing err on IE:
> $('someThing') instanceof Element
> error: Function expected
> it is fine on any other objects such as:
> $('someThing') instanceof Template --> return false
> $('someThing') instanceof Hase --> return false
> any idea y Element is diff or how i can get around this problem?

global `Element` is undefined in IE<8b, hence `instanceof` throws
TypeError (as it expects a function as a right-hand expression). What
exactly are you trying to accomplish with this "check"?

> thanks in advance

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to