Slide 50
Slide 50 text
game = new Bind(result.data, {
'me.score': '#myscore',
'them.score': function (value) {
$.trigger('theirScore', value);
},
'turn': function (myturn) {
turnEl.dataset.turn = myturn;
$.trigger('myturn', myturn);
}
});
https://github.com/remy/bind