Skip to content

Commit

Permalink
Ensure _propertySetter is installed first. Fixes #3063
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 11, 2016
1 parent 4411031 commit 6362f60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@
// values (_propertySetter back on instance once accessor is installed)
_extendTemplate: function(template, proto) {
var n$ = Object.getOwnPropertyNames(proto);
if (proto._propertySetter) {
template._propertySetter = proto._propertySetter;
}
for (var i=0, n; (i<n$.length) && (n=n$[i]); i++) {
var val = template[n];
var pd = Object.getOwnPropertyDescriptor(proto, n);
Expand Down

0 comments on commit 6362f60

Please sign in to comment.