Skip to content

Commit

Permalink
Set propertyName on parent props for config phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored and dfreedm committed Apr 5, 2016
1 parent 677f10c commit d9c03a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/standard/annotations.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@
this._discoverTemplateParentProps(note.templateContent._notes);
var bindings = [];
for (var prop in pp) {
var name = '_parent_' + prop;
bindings.push({
index: note.index,
kind: 'property',
name: '_parent_' + prop,
name: name,
propertyName: name,
parts: [{
mode: '{',
model: prop,
Expand Down
4 changes: 4 additions & 0 deletions test/unit/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@
assert.notOk(Object.getOwnPropertyDescriptor(Object.getPrototypeOf(host), 33));
});

test('ensure undefined is not set on templatizee', function() {
assert.equal(host.$.templatizee[undefined], undefined);
});

});

</script>
Expand Down

0 comments on commit d9c03a4

Please sign in to comment.