Sorry, messed up the defineProperty version:
Object.defineProperty(Array.prototype, 'b', {
get: function () {
var array = this;
return {
c : function () {
console.log(array);
return array;
}
}
},
set: function () {},
enumerable: false
});
--
Poetro
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]