JavaScriptRoom / oojs

Examples of Object Oriented Design patterns in JavaScript
2 stars 0 forks source link

Use this.parent #1

Open ralt opened 11 years ago

ralt commented 11 years ago

It'd be nice to have an example of using this.parent in the constructor example, no need to call point.method.call when you can have this.parent.method.call and thus keep loosely coupled inheritance.

ryankinal commented 11 years ago

You mean here?

ralt commented 11 years ago

Exactly. Le 4 avr. 2013 22:54, "Ryan Kinal" notifications@github.com a écrit :

You mean here?https://github.com/SoJavaScriptRoom/oojs/blob/master/constructor.js#L31

— Reply to this email directly or view it on GitHubhttps://github.com/SoJavaScriptRoom/oojs/issues/1#issuecomment-15923197 .