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

Commit

Permalink
adapt to new mdv api
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 16, 2014
1 parent 53eadc3 commit c98a5b6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions polymer-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@
this.rootData = this.template.templateInstance.model;
}
var content = this.template.ref.content;
// why isn't this necessary?
/*if (content.bindingMap_) {
console.log(content.bindingMap_);
content.bindingMap_ = null;
}*/
// add 'page' element to template
var page = document.createElement('div');
page.setAttribute('class', '{{page}}');
Expand All @@ -129,8 +124,8 @@
}
content.appendChild(page);
// set template to repeat
var observer = new PathObserver(this, 'listData');
this.template.bind('repeat', observer);
this.template.setAttribute('repeat', '{{listData}}');
this.template.model = this;
},
listDataChanged: function() {
/*if (this.template.templateInstance) {
Expand Down

0 comments on commit c98a5b6

Please sign in to comment.