Behavior/Prototype Lifecycle Callback Order (Polymer v 1.0)
46 views
Skip to first unread message
dsl...@google.com
unread,
Jul 7, 2015, 4:05:47 PM7/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to polym...@googlegroups.com
Hi there,
I'm new to Polymer 1.0 and confused about the order for the lifecycle callbacks when using behaviors. From the documentation (quoted below) it seems like the lifecycle cb should be called first on the prototype, and then on the behaviors. However, this is not what I'm seeing. I've attached a screen shot of a simple example where the ready lifecycle callback on the behavior is called before the prototype. Am I doing something wrong, or am I misinterpreting the documentation?
Thanks,
Danielle
Lifecycle callbacks are called on the base prototype first, then for each behavior in the order given in thebehaviors array.