-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Variable picked by constructor
attribute is set after upgrade events.
#398
Comments
An element's constructor is not available in its createdCallback. This is On Sat, Jan 18, 2014 at 2:28 PM, Jeffrey Yasskin
|
'k, thanks. @ebidel, I think it'd be worth calling this timing out in http://www.polymer-project.org/polymer.html#attributes. The timing is actually a little "worse" than I'd thought when filing the bug: even postponing the traversal with Waiting until after Thanks again for the explanation. |
I'd missed http://www.polymer-project.org/platform/shadow-dom.html#wrappers, but that means I'm seeing an element get the wrong result from |
If you declare cxx-function before cxx-section, CxxFunctionElement is available before the cxx-section code runs. |
I filed a separate bug #402 for the |
I tried the test that I posted on jsbin on my direct server and the behavior was not different. From this perspective it seems to me this is working as designed. If I missed something important, please re-open this ticket. |
http://jsbin.com/uSEVOkEN/2/edit?html,console,output shows that the
constructor
attribute on the<polymer-element>
element creates the variable onwindow
after the upgrade events happen, which makes it difficult to reference any constructors inside an upgrade event. Polymer 0.1.1 set thewindow
attribute before upgrading anything, but 0.1.2 and 0.1.3 have the same, unexpected behavior.The text was updated successfully, but these errors were encountered: