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

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

Issue 835353004: Prevent expandos on all SkyElements. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/examples/city-list/city-list.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 30f5302d99af1da71f1f3fc7d57975db0098c29b..adb7e28640924e0b0b8185a41602c31cc7d2f0cc 100644
--- a/sky/framework/sky-element/sky-element.sky
+++ b/sky/framework/sky-element/sky-element.sky
@@ -101,6 +101,8 @@ class SkyElement extends HTMLElement {
this.isAttached = false;
this.created();
+ Object.preventExtensions(this);
+
// Invoke attributeChanged callback when element is first created too.
var attributes = this.getAttributes();
for (var i = 0; i < attributes.length; ++i) {
« no previous file with comments | « sky/examples/city-list/city-list.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698