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

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

Issue 689243003: fix sky element (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync 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 | « no previous file | 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 c064255a71039288b1587cab39f90f385b50b54a..c401028deeadee509ca5ba931a9b47f8b836ce97 100644
--- a/sky/framework/sky-element/sky-element.sky
+++ b/sky/framework/sky-element/sky-element.sky
@@ -5,7 +5,9 @@
-->
<link rel="import" href="TemplateBinding.sky" />
<script>
-var Base = Object.create(HTMLElement.prototype, {
+var Base = {
+ __proto__: HTMLElement.prototype,
+
register: function() {
// |this| is prototype
var template = document.currentScript.previousElementSibling;
@@ -41,7 +43,7 @@ var Base = Object.create(HTMLElement.prototype, {
attributeChanged: function(attrName, oldValue, newValue) {
// override
- },
+ }
};
function SkyElement(prototype) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698