Migrate away from the PrefMetricsService-based device ID in PrefHashCalculator.
[chromium-blink-merge.git] / third_party / polymer_legacy / polymer / polymer-body.html
blob5f07a017cd543229619510cc78f2e4faa218a9a6
1 <polymer-element name="polymer-body" extends="body">
3 <script>
5 // upgrade polymer-body last so that it can contain other imported elements
6 document.addEventListener('polymer-ready', function() {
8 Polymer('polymer-body', Platform.mixin({
10 created: function() {
11 this.template = document.createElement('template');
12 var body = wrap(document).body;
13 var c$ = body.childNodes.array();
14 for (var i=0, c; (c=c$[i]); i++) {
15 if (c.localName !== 'script') {
16 this.template.content.appendChild(c);
19 // snarf up user defined model
20 window.model = this;
23 parseDeclaration: function(elementElement) {
24 this.lightFromTemplate(this.template);
27 }, window.model));
29 });
31 </script>
33 </polymer-element>