Skip to content

this.__base contains undefined in next tick #17

@j0tunn

Description

@j0tunn

It would be nice to be able to call same method from parent class from next tick. Something like:

var C = inherit(B, {
    someMethod: function() {
        return doSomethingAndReturnPromise()
            .then(this.__parent.someMethod.bind(this));
    }
});

It would be more readable then workaround a la "save this.__base to variable and then call it"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions