Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on Behavior Lifecycle Callback Order #2144

Closed
zerodevx opened this issue Jul 24, 2015 · 1 comment
Closed

Clarification on Behavior Lifecycle Callback Order #2144

zerodevx opened this issue Jul 24, 2015 · 1 comment

Comments

@zerodevx
Copy link

According to the docs (https://www.polymer-project.org/1.0/docs/devguide/behaviors.html),

Lifecycle callbacks are called on the base prototype first, then for each behavior in the order given in the behaviors array.

which I understand is element first, then behaviors.

I'm using Chrome 43, and it seems lifecycle callbacks are called on behaviors first, then element? Is this expected?

Repro (http://jsbin.com/xibijujaje/edit?html,console)

Thanks,
J

@kevinpschaaf
Copy link
Member

Confirm the typo in the documentation, you are correct it is "behaviors first in the order given in the behaviors array, followed by the prototype."

There is already a bug open on our documentation issue tracker here, so I'll close this one in lieu of that one: Polymer/old-docs-site#1258 (and bump it).

Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants