var r = document.getElementById("r");
var buttonView = {
label : 'test',
onClick: function() {
r.innerHTML += this.label + ' click! ';
},
onMouseover: function() {
r.innerHTML += this.label + ' mousever! ';
}
};
_.bindAll(buttonView, 'onClick', 'onMouseover');
$("#b").bind('click', buttonView.onClick);
$("#b").bind('mouseover', buttonView.onMouseover);