This project is archived and is in readonly mode.

#851 ✓resolved

$type and ActiveXObject

Reported by kentaromiura | February 18th, 2010 @ 08:41 AM | in 1.3.0 rc2 (closed)

$type throws error when it tries to directly refer obj.item on an ActiveXObject in IE, but since ActiveX expects to be called with an index you can't invoke it directly neither to check if it exists,
instead you can safelly use the typeof function to check if it returns 'unknown', I know is weird :)

I've made a working patch, you can see it here:

this is a code to reproduce the bug:

and this is the original code that expose me the bug:
(you need Sarissa: to run it


Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by