Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(819)

Side by Side Diff: pkg/polymer/lib/src/js/polymer/polymer-body.html

Issue 307793002: update polymer, nodebind, and templatebinding (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <polymer-element name="polymer-body" extends="body">
2
3 <script>
4
5 // upgrade polymer-body last so that it can contain other imported elements
6 document.addEventListener('polymer-ready', function() {
7
8 Polymer('polymer-body', Platform.mixin({
9
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);
17 }
18 }
19 // snarf up user defined model
20 window.model = this;
21 },
22
23 parseDeclaration: function(elementElement) {
24 this.lightFromTemplate(this.template);
25 }
26
27 }, window.model));
28
29 });
30
31 </script>
32
33 </polymer-element>
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/js/polymer/polymer.js ('k') | pkg/polymer/lib/src/js/polymer/polymer.concat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698