Remove useless id check on mixins

Fixes #4445
This commit is contained in:
Daniel Freedman 2017-03-20 16:02:27 -07:00
parent 3d054bab66
commit 8c1a5765b8

View File

@ -51,9 +51,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
Polymer.dedupingMixin = function(mixin) {
mixin = cachingMixin(mixin);
// maintain a unique id for each mixin
if (!mixin.__id) {
mixin.__dedupeId = ++dedupeId;
}
mixin.__dedupeId = ++dedupeId;
return function(base) {
let baseSet = base.__mixinSet;
if (baseSet && baseSet[mixin.__dedupeId]) {