News for hackers. Stuff that matters.
Re:Ractive.js by mnemonik on Wednesday July 24, 2013 @06:09PM (#6099429)
Many of these frameworks want to support IE 8, which is the default browser of windows 7. IE 8 only supports Object.defineProperty with DOM objects[0], which can be infuriating.

No one should use __defineGetter__ and __defineSetter__ because they are non-standard and deprecated[1].

[0] http://kangax.github.io/es5-compat-table/#define-property-ie...

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Edit: left this tab open and I see this point has since been made, but I will leave the comment anyways.

Re:Ractive.js by mannix on Thursday July 25, 2013 @10:17AM (#6102540)
Yes, the only reason I'd use __defineGetter__ would be a fallback for Object#defineProperty.

I'm curious if the IE8 limitation could be worked around, using something like:

    if (ie8)
        RactiveBaseModel.prototype = HTMLAnchorElement.prototype;