Skip to content
This repository was archived by the owner on Dec 19, 2017. It is now read-only.
This repository was archived by the owner on Dec 19, 2017. It is now read-only.

issue warning when calling polymerCreated twice #371

@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="96" height="96"hspace="10"> Issue by sigmundch
Originally opened as dart-lang/sdk#15360


Common error:
 - extend DivElement, use 'polymerCreated' explicitly
 - switch to extend PolymerElement, but forgot to remove the 'polymerCreated' call.
 - problem: polymerCreated is invoked twice

Possible solutions:
 - provide warnings in the linter: this is unfortunately something we can't do without full use of the dart analyzer/resoltion, which can be expensive
 - make polymerCreated reentrant (at least print a warning the second time it's invoked).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions