From 23c883b10b8ef2ddd9167ec0801da424bd50595b Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 30 Sep 2015 12:45:27 -0700 Subject: [PATCH] Parent property values should come from template. Fixes #2504. --- src/lib/template/templatizer.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/template/templatizer.html b/src/lib/template/templatizer.html index b06aa6c0eb..95dbf34eb0 100644 --- a/src/lib/template/templatizer.html +++ b/src/lib/template/templatizer.html @@ -87,6 +87,7 @@ * @param {HTMLTemplateElement} template The template to process. */ templatize: function(template) { + this._templatized = template; // TODO(sjmiles): supply _alternate_ content reference missing from root // templates (not nested). `_content` exists to provide content sharing // for nested templates. @@ -383,8 +384,9 @@ stamp: function(model) { model = model || {}; if (this._parentProps) { + var templatized = this._templatized; for (var prop in this._parentProps) { - model[prop] = this[this._parentPropPrefix + prop]; + model[prop] = templatized[this._parentPropPrefix + prop]; } } return new this.ctor(model, this);