Closed fraserxu closed 11 years ago
@makara ? Want to weight in that discussion. This goes live tonight 8:00 PM on Hacker News + Reddit + Google+...
Thanks.
__defineGetter__
, it works well in Node.js, plus you don't need to take care of other property attributes which you need to with Object.defineProperty
.The next time send a Pull Request (really).
Any other link you would give as a resource @makara ?
Made a small change https://github.com/devo-ps/devo.ps/commit/084900dd535116bf26b4dcaeb10ec07c3bb2f92e
No more additions.
Published. Didn't work well: I think mostly because of the title and the posting day (Thursday instead of Wednesday).
The first example: The "Function copy"
I usually do this:
Done!
About Object.defineProperties()
The
__defineGetter__
method seems to have been deprecated. But I don't know why many people are still using it. See here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineGetterAnd also I suggest to put some related post on it. Like: