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

Commit

Permalink
explicitly setup scroll listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Orvell committed Dec 6, 2013
1 parent de5cf14 commit 9f9a6d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion polymer-virtual-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@
horizontal: 'reset'
},
ready: function() {
this.setupScrollListener();
this.reset();
},
setupScrollListener: function() {
var self = this;
this.$.list.addEventListener('scroll', function(e) {
self.scroll(e);
})
this.reset();
},
// re-render at the top
reset: function() {
Expand Down

0 comments on commit 9f9a6d4

Please sign in to comment.