polling for scoreboard added (appseceu)

This commit is contained in:
Jason White 2017-05-10 15:27:19 +01:00
parent a676fffc4e
commit c7c664ad4a

View File

@ -22,9 +22,7 @@ function($,
//this.$el.html('test');
var t = _.template(this.template);
this.$el.html(t({'rankings':this.collection.toJSON()}));
//TODO: add template (table) to iterate over ...
//this.collection.toJSON(); << put that in the template data
//TODO: set up next poll here with listenToOnce
setTimeout(this.pollData.bind(this), 5000);
},
pollData: function() {