diff --git a/src/lib/template/templatizer.html b/src/lib/template/templatizer.html index ce7cbfeafd..adcb8c8f46 100644 --- a/src/lib/template/templatizer.html +++ b/src/lib/template/templatizer.html @@ -277,7 +277,9 @@ model = model || {}; if (this._parentProps) { for (var prop in this._parentProps) { - model[prop] = this['_parent_' + prop]; + if (!model[prop]) { + model[prop] = this['_parent_' + prop]; + } } } return new this.ctor(model, this); @@ -304,4 +306,4 @@ }; - \ No newline at end of file + diff --git a/test/unit/template/dom-template.html b/test/unit/template/dom-template.html index f36ddad403..d045800b7f 100644 --- a/test/unit/template/dom-template.html +++ b/test/unit/template/dom-template.html @@ -21,6 +21,34 @@ {{text}} + + + + + + +