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 7b7933ab35709505eee6b2118c3228a6a28ed7ea..d1dfcbb9b1ff26d1b9b06d2418f2bf11e4558318 100644 |
--- a/sky/framework/sky-element/sky-element.sky |
+++ b/sky/framework/sky-element/sky-element.sky |
@@ -77,16 +77,6 @@ class ElementRegistration { |
return this.definition.getAttribute('on-' + eventName); |
} |
- getAttributeNames() { |
- // TODO(esprehn): We can replace this method with |
- // Array.from(registration.attributes) once we turn that on. |
- var names = [] |
- this.attributes.forEach(function(converter, name) { |
- names.push(name); |
- }); |
- return names; |
- } |
- |
synthesizeAttributes(prototype) { |
this.attributes.forEach(function(converter, name) { |
Object.defineProperty(prototype, name, { |
@@ -129,7 +119,7 @@ class SkyElement extends HTMLElement { |
// TODO(esprehn): Combine the two element registries here and in sky binder. |
binder.registerElement(registration.tagName, { |
- attributeNames: registration.getAttributeNames(), |
+ attributeNames: Array.from(registration.attributes.keys()), |
}); |
registrations.set(registration.tagName, registration); |