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

Unified Diff: sky/framework/sky-element/sky-element.sky

Issue 821353003: Switch to SkyBinder (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/sky-element/sky-binder.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-element/sky-element.sky
diff --git a/sky/framework/sky-element/sky-element.sky b/sky/framework/sky-element/sky-element.sky
index 19eb2535f905aa53982923d5f77c242638ccd5eb..d34ce56b9a818c123ccb05b98a9f8ac9f35b021c 100644
--- a/sky/framework/sky-element/sky-element.sky
+++ b/sky/framework/sky-element/sky-element.sky
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-->
-<import src="TemplateBinding.sky" />
+<import src="sky-binder.sky" as="binder" />
<script>
var templates = new Map();
@@ -57,7 +57,8 @@ class SkyElement extends HTMLElement {
var template = templates.get(this.localName);
if (template) {
var shadow = this.ensureShadowRoot();
- shadow.appendChild(template.createInstance(this));
+ var instance = binder.createInstance(template, this);
+ shadow.appendChild(instance.fragment);
this.shadowRootReady();
}
}
« no previous file with comments | « sky/framework/sky-element/sky-binder.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698