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

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

Issue 950603002: Port sky-scrollable to Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: less setAttributes Created 5 years, 10 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/fling-curve.sky ('k') | sky/framework/sky-scrollable.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-element.sky
diff --git a/sky/framework/sky-element.sky b/sky/framework/sky-element.sky
index 8b04f79a5048e9db4bf0f0b5abfcd32df0616953..2fdc62ad65dcf10e6f0301995ed6ca375e637f41 100644
--- a/sky/framework/sky-element.sky
+++ b/sky/framework/sky-element.sky
@@ -47,8 +47,8 @@ abstract class SkyElement extends Element {
var registration = _registery[tagName];
if (registration.template != null) {
ShadowRoot shadow = ensureShadowRoot();
- var tree = registration.template.content.cloneNode(deep:true);
- shadow.appendChild(tree);
+ Node content = registration.template.content;
+ shadow.appendChild(document.importNode(content, deep: true));
shadowRootReady();
}
}
« no previous file with comments | « sky/framework/fling-curve.sky ('k') | sky/framework/sky-scrollable.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698