Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit ee517e9

Browse files
committed
document.register -> document.registerElement
1 parent b740a42 commit ee517e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/declaration/polymer-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,5 @@
178178
}
179179

180180
// register polymer-element with document
181-
document.register('polymer-element', {prototype: prototype});
181+
document.registerElement('polymer-element', {prototype: prototype});
182182
})(Polymer);

src/declaration/prototype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
info.extends = typeExtension;
186186
}
187187
// register the custom type
188-
this.ctor = document.register(name, info);
188+
this.ctor = document.registerElement(name, info);
189189
// constructor shenanigans
190190
this.prototype.constructor = this.ctor;
191191
// register the prototype with HTMLElement for name lookup

0 commit comments

Comments
 (0)