Skip to content

Commit

Permalink
remove unneeded protection code for extends.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Aug 26, 2015
1 parent 230528c commit 8eada87
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/lib/polymer-bootstrap.html
Expand Up @@ -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;
Expand Down

0 comments on commit 8eada87

Please sign in to comment.