Skip to content

Commit

Permalink
Upstream http://cl/420889188
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Apr 27, 2022
1 parent ec36597 commit d0d39b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/legacy/legacy-data-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ const TemplatizeMixin =
return TemplateLegacy;
});

templatize.mixin = TemplatizeMixin;
const existingTemplatizeMixin = templatize.mixin;
templatize.mixin = existingTemplatizeMixin ?
(s) => TemplatizeMixin(existingTemplatizeMixin(s)) :
TemplatizeMixin;

console.info('LegacyDataMixin will be applied to all legacy elements.\n' +
'Set `_legacyUndefinedCheck: true` on element class to enable.');

0 comments on commit d0d39b8

Please sign in to comment.