Skip to content

Use this.parent #1

Description

@ralt

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.

Activity

  1. ryankinal commented on Apr 4, 2013

    @ryankinal
    Member
  2. ralt commented on Apr 4, 2013

    @ralt
    Author

    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//issues/1#issuecomment-15923197
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions