diff --git a/index.html b/index.html index a881ae043..eacb7016e 100644 --- a/index.html +++ b/index.html @@ -646,11 +646,7 @@ var buttonView = { onClick : function(){ alert('clicked: ' + this.label); }, onHover : function(){ console.log('hovering: ' + this.label); } }; - -// In this case, the following two lines have the same effect. -_.bindAll(buttonView, 'onClick', 'onHover'); -_(buttonView).bindAll(); - +_.bindAll(buttonView); jQuery('#underscore_button').bind('click', buttonView.onClick); => When the button is clicked, this.label will have the correct value...