I just realized that the Polymer(...) declaration in a custom element can
be asynchronous. In other words, the following works precisely as expected:


<dom-module id="foo">
  ...
</dom-module>
<script>
  window.setTimeout(function() {
    Polymer({
      is: "foo",
      ...
    });
  }, 5000);
</script>


All the foo elements are invisible until 5 seconds later, when they pop
into place! This means I could enclose it in -- say -- a RequireJS module.
Very nice work!

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAG7xX7oDPjqmCKEg1vaoD%3D-xctRGP2zmXZN03J6LY9W5wAf0vQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to