Skip to content
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

polymer-body double fire ready/created/attached #447

Closed
ebidel opened this issue Mar 13, 2014 · 2 comments
Closed

polymer-body double fire ready/created/attached #447

ebidel opened this issue Mar 13, 2014 · 2 comments
Labels

Comments

@ebidel
Copy link
Contributor

ebidel commented Mar 13, 2014

Example alerts "created", "ready", "attached" x 2 in stable and canary (flags):

<head>
  <script src="http://www.polymer-project.org/platform.js"></script>
  <link rel="import" href="http://www.polymer-project.org/polymer.html">
  <link rel="import" href="xfoo.html">
</head>
<body is="polymer-body" unresolved>
  <x-foo></x-foo>
</body>
</html>

xfoo.html:

<polymer-element name="x-foo">
  <template>x-foo</template>
  <script>
    Polymer('x-foo', {
      created: function() { alert("created"); },
      ready: function() { alert("ready"); },
      attached: function() { alert("attached"); }
    });
  </script>
</polymer-element>

Test: http://jsbin.com/juxecuqa/1/edit

@ebidel ebidel added the bug label Mar 16, 2014
@Jeff17Robbins
Copy link

This is still a problem in Polymer 0.2.3 under Windows Chrome Version 34.0.1847.131 m

@sorvell
Copy link
Contributor

sorvell commented Aug 11, 2014

Closing since polymer-body has been removed in favor of <template is="auto-binding">

@sorvell sorvell closed this as completed Aug 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants