Skip to content

Commit

Permalink
Remove unnecessary setting of _template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Nov 6, 2018
1 parent b12a0b6 commit 9d33ecb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/legacy/class.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,6 @@
klass = GenerateClassFromInfo(info, klass, info.behaviors);
// decorate klass with registration info
klass.is = info.is;
// To match 1.x behavior, `_template` supplied on a behavior should take
// precedence over dom-module lookup for `is`; this also prevents
// dom-module injection under strictTemplatePolicy for an element that
// would normally get its template from a behavior.
// TODO(sorvell): Remove once "flattened behaviors" lands, since both
// `_template` and `is` will be on the same class after that change
if (klass.prototype._template !== undefined) {
klass.prototype._template = klass.prototype._template;
}
return klass;
};

Expand Down

0 comments on commit 9d33ecb

Please sign in to comment.