rsandor/gury — Issue #12: IE9 __defineGetter__ issues
Author: wiseguydigital
Created: 2011-10-28 12:16:27+00:00
State: open

When running in IE9 the script falls over due to IE9 and EC5 not supporting __defineGetter__ method.

This is a simple fix:

```javascript
this.__defineGetter__("length", function() { return length; });
```

becomes:

```javascript
Object.defineProperty(this, "length", {
get: function() {
return length;
}
});
```

And then:

```javascript
this.__defineGetter__("length", function() { return table.length; });
```

becomes:

```javascript
Object.defineProperty(this, "length", {
get: function() {
return table.length;
}
});
```

Thanks for a nice library by the way!