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
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.

 
Reply all
Reply to author
Forward
0 new messages