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

.8 domReady never being called #1460

Closed
BLamy opened this issue Apr 28, 2015 · 1 comment
Closed

.8 domReady never being called #1460

BLamy opened this issue Apr 28, 2015 · 1 comment

Comments

@BLamy
Copy link

BLamy commented Apr 28, 2015

Using Polymer .8 I have the following element

<link rel="import" href="../../bower_components/polymer/polymer.html">

<dom-module id="app-logo">
  <template>
    <link rel="import" href="../../bower_components/font-roboto/roboto.html">
    <link rel="stylesheet" href="../../bower_components/components-font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="app-logo.css">
    <i class="fa fa-sun-o"></i> playground
  </template>
</dom-module>

<script>
  Polymer({
    is: 'app-logo',

    //this is never called
    domReady:function(){
      console.log("logo domReady");
    },

    //however this is.
    ready:function(){
      console.log("logo Ready");
    }

  });
</script>

ready is called fine but domReady is never called?

Is this a regression or intentional. I didn't read anything about it in the migration guide?

@BLamy BLamy changed the title domReady never being called .8 domReady never being called Apr 28, 2015
@sorvell
Copy link
Contributor

sorvell commented May 5, 2015

This is by current design: domReady is not available in 0.8.

The 0.5 approach for this problem was brittle and prone to failure. We're investigating the use cases around 0.5's domReady method in an attempt to provide something better for 0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants