Skip to content

Commit

Permalink
Add comment and handle undefined host case.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 31, 2018
1 parent 9f65049 commit 6e4f62d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/legacy/legacy-data-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@
Polymer.LegacyDataMixin(superClass)
);

// Apply LegacyDataMixin to Templatizer instances as well, and defer
// runtime switch to the root's host (_methodHost)
Polymer.Templatize.mixin =
Polymer.dedupingMixin(superClass => class extends Polymer.LegacyDataMixin(superClass) {
get _legacyUndefinedCheck() {
return this._methodHost._legacyUndefinedCheck;
return this._methodHost && this._methodHost._legacyUndefinedCheck;
}
});

Expand Down

0 comments on commit 6e4f62d

Please sign in to comment.