We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f267025 commit 21e0cbcCopy full SHA for 21e0cbc
index.html
@@ -646,11 +646,7 @@ <h2>Function (uh, ahem) Functions</h2>
646
onClick : function(){ alert('clicked: ' + this.label); },
647
onHover : function(){ console.log('hovering: ' + this.label); }
648
};
649
-
650
-// In this case, the following two lines have the same effect.
651
-_.bindAll(buttonView, 'onClick', 'onHover');
652
-_(buttonView).bindAll();
653
+_.bindAll(buttonView);
654
jQuery('#underscore_button').bind('click', buttonView.onClick);
655
=> When the button is clicked, this.label will have the correct value...
656
</pre>
0 commit comments