From c3a0688c4a525ba925c29bef78c6c063297dd1ec Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Fri, 13 Dec 2013 12:56:31 -0800 Subject: [PATCH] update Template.bind to use observer --- polymer-list.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer-list.html b/polymer-list.html index b4714b2..d1d0af5 100644 --- a/polymer-list.html +++ b/polymer-list.html @@ -108,6 +108,7 @@ this.selectedClass : ''; }, templateChanged: function() { + // TODO: handle template changing if (!this.template) { return; } @@ -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) {