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

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

Issue 759663003: Only allow one shadowRoot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan review. Created 6 years, 1 month 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/engine/web/tests/data/touch-action-tests.js ('k') | sky/tests/dom/appendChild.sky » ('j') | 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 573c3545f622ddfa642d0cdc9c2df3671687bbd4..81b796ae1fdd4140ab83b9e3f0c1fa25224fb98a 100644
--- a/sky/framework/sky-element/sky-element.sky
+++ b/sky/framework/sky-element/sky-element.sky
@@ -31,7 +31,7 @@ var BasePrototype = createPrototype(HTMLElement.prototype, {
if (!this.shadowRoot) {
var template = templates.get(this.localName);
if (template) {
- var shadow = this.createShadowRoot();
+ var shadow = this.ensureShadowRoot();
shadow.appendChild(template.createInstance(this));
}
}
« no previous file with comments | « sky/engine/web/tests/data/touch-action-tests.js ('k') | sky/tests/dom/appendChild.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698