From ee517e91c570d09c20a0b85873226ab3a79f3587 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 6 Jan 2014 12:56:53 -0800 Subject: [PATCH] document.register -> document.registerElement --- src/declaration/polymer-element.js | 2 +- src/declaration/prototype.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declaration/polymer-element.js b/src/declaration/polymer-element.js index 9909bc4..42c2502 100644 --- a/src/declaration/polymer-element.js +++ b/src/declaration/polymer-element.js @@ -178,5 +178,5 @@ } // register polymer-element with document - document.register('polymer-element', {prototype: prototype}); + document.registerElement('polymer-element', {prototype: prototype}); })(Polymer); diff --git a/src/declaration/prototype.js b/src/declaration/prototype.js index 07e089f..2eba5f9 100644 --- a/src/declaration/prototype.js +++ b/src/declaration/prototype.js @@ -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