Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
update Template.bind to use observer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Dec 13, 2013
1 parent 9f9a6d4 commit c3a0688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polymer-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
this.selectedClass : '';
},
templateChanged: function() {
// TODO: handle template changing
if (!this.template) {
return;
}
Expand All @@ -128,7 +129,8 @@
}
content.appendChild(page);
// set template to repeat
this.template.bind('repeat', this, 'listData');
var observer = new PathObserver(this, 'listData');
this.template.bind('repeat', observer);
},
listDataChanged: function() {
/*if (this.template.templateInstance) {
Expand Down

0 comments on commit c3a0688

Please sign in to comment.