Put beforeRegister in the behaviorProperties.

Fix a problem where beforeRegister was being copied into the element prototype, causing doBehavior_ to call beforeRegister twice.
This commit is contained in:
zhaoz 2015-11-23 15:21:57 -08:00
parent 8a08c279b6
commit 445b6cd670

View File

@ -146,6 +146,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// for calling via doBehavior (e.g. created, ready)
Polymer.Base._behaviorProperties = {
hostAttributes: true,
beforeRegister: true,
registered: true,
properties: true,
observers: true,