On Tue, Nov 03, 2015 at 03:34:52AM -0500, Karl Dahlke wrote:
> > I'm interested to know how one implements such magic,
> 
> It's something like this.
> This is for any div node . firstchild.
> 
> Object.defineProperty(Div.prototype, "firstChild", {
> get: function() { return this.childNodes[0]; }
> });
> 

Ah ok, didn't know js supported this kind of thing, that's useful to know.

Cheers,
Adam.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to