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

Commit

Permalink
document.register -> document.registerElement
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 6, 2014
1 parent b740a42 commit ee517e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/declaration/polymer-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@
}

// register polymer-element with document
document.register('polymer-element', {prototype: prototype});
document.registerElement('polymer-element', {prototype: prototype});
})(Polymer);
2 changes: 1 addition & 1 deletion src/declaration/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
info.extends = typeExtension;
}
// register the custom type
this.ctor = document.register(name, info);
this.ctor = document.registerElement(name, info);
// constructor shenanigans
this.prototype.constructor = this.ctor;
// register the prototype with HTMLElement for name lookup
Expand Down

0 comments on commit ee517e9

Please sign in to comment.