Skip to content

Loading…

Clarification on Behavior Lifecycle Callback Order #2144

Closed
zerodevx opened this Issue · 1 comment

2 participants

@zerodevx

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

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/docs#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
Something went wrong with that request. Please try again.