> 1. Deprecate [] for property access in non-collection objects and use methods
> such as Object.getProperty(name) and Object.setProperty(name, value), instead.
Additionally:
Object.prototype.operator[]get = function (name) {
return Object.getProperty(name);
}
Object.prototype.operator[]set = function (name, value) {
return Object.setProperty(name, value);
}
--
Dr. Axel Rauschmayer
[email protected]
twitter.com/rauschma
home: rauschma.de
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss