mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
Add comment and handle undefined host case.
This commit is contained in:
@@ -155,10 +155,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user