From 8eada875428b09819e3a6e4e38b2f077ae744d6f Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Wed, 26 Aug 2015 12:19:56 -0700 Subject: [PATCH] remove unneeded protection code for extends. --- src/lib/polymer-bootstrap.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/polymer-bootstrap.html b/src/lib/polymer-bootstrap.html index cf09cea364..3386d515bf 100644 --- a/src/lib/polymer-bootstrap.html +++ b/src/lib/polymer-bootstrap.html @@ -34,15 +34,10 @@ // Polymer.Base is now chained to factory.prototype, and for IE10 compat // this may have resulted in a new prototype being created prototype = factory.prototype; - // native Custom Elements treats 'undefined' extends property - // as valued, the property must not exist to be ignored - // TODO(sjmiles): Custom Elements no longer has the above behavior var options = { - prototype: prototype + prototype: prototype, + extends: prototype.extends }; - if (prototype.extends) { - options.extends = prototype.extends; - } Polymer.telemetry._registrate(prototype); document.registerElement(prototype.is, options); return factory;