Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

registerElement should support callbacks coming from deep prototype chains #52

@rkirov

Description

@rkirov

The following line:

zone.js/zone.js

Line 663 in 26a4dc2

var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);

Checks if (opts.prototype[callback]) and then uses Object.getOwnPropertyDescriptor(opts.prototype, callback) to retrieve it. If the callback comes from the prototype chain we cannot use getOwnPropertyDescriptor.

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