我正在使用带有stickit的Backbone.js进行绑定。我有类似下面的东西。我如何知道用户点击了哪个元素? (单选按钮)
initialize: function() {
this.listenTo(this.model, 'change', this.blockDiv);
}
blockDiv : function() {
console.log('The changed element is '+); //How do i know which element the user has changed?
}
bindings : {
'[name=element1]' : element1,
'[name=element2]' : element2
}