blob: 6bd1722f9443e06cb0b873435a976ee61d8e5d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/*
* Object.prototype.__defineSetter__ polyfill
*/
if (typeof Object.prototype.__defineSetter__ === 'undefined') {
Object.defineProperty(Object.prototype, '__defineSetter__', {
value: function (n, f) {
Object.defineProperty(this, n, { enumerable: true, configurable: true, set: f });
}, writable: true, enumerable: false, configurable: true
});
}
|