[Proto-Scripty] Re: Function expected err when doing instanceof in IE

2008-12-02 Thread kangax
On Dec 2, 12:11 am, yoshi [EMAIL PROTECTED] wrote: but it is defined globally? cuz i open up the js debugger console in IE8 beta, i type 'Element' and the debugger returns {...} so it is defined? And y is only Element not globally defined and not the Template or Hash object ? I think

[Proto-Scripty] Re: Function expected err when doing instanceof in IE

2008-12-01 Thread kangax
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 --

[Proto-Scripty] Re: Function expected err when doing instanceof in IE

2008-12-01 Thread yoshi
but it is defined globally? cuz i open up the js debugger console in IE8 beta, i type 'Element' and the debugger returns {...} so it is defined? And y is only Element not globally defined and not the Template or Hash object ? I think prototype define them on global scope? what i m trying to do