Skip to content

Commit 55876ca

Browse files
author
Steve Orvell
committed
Merge pull request #3408 from Polymer/3063-kschaaf-extend-template
Ensure _propertySetter is installed first. Fixes #3063
2 parents 605e5fe + b870fe0 commit 55876ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/template/templatizer.html

+5
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@
298298
// values (_propertySetter back on instance once accessor is installed)
299299
_extendTemplate: function(template, proto) {
300300
var n$ = Object.getOwnPropertyNames(proto);
301+
if (proto._propertySetter) {
302+
// _propertySetter API may need to be copied onto the template,
303+
// and it needs to come first to allow the property swizzle below
304+
template._propertySetter = proto._propertySetter;
305+
}
301306
for (var i=0, n; (i<n$.length) && (n=n$[i]); i++) {
302307
var val = template[n];
303308
var pd = Object.getOwnPropertyDescriptor(proto, n);

0 commit comments

Comments
 (0)