Underscore.js 1.7の使い方 Functions編 bind

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);