Skip to content

Commit

Permalink
Merge pull request jashkenas#988 from sdemjanenko/fix_bindAll_doc
Browse files Browse the repository at this point in the history
Fix _.bindAll documentation to note that methodNames are required
  • Loading branch information
braddunbar committed Feb 27, 2013
2 parents 1a379fa + d8f4f28 commit 48e373a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,7 @@ <h2 id="functions">Function (uh, ahem) Functions</h2>
<b>methodNames</b>, to be run in the context of that object whenever they
are invoked. Very handy for binding functions that are going to be used
as event handlers, which would otherwise be invoked with a fairly useless
<i>this</i>. If no <b>methodNames</b> are provided, all of the object's
function properties will be bound to it.
<i>this</i>. <b>methodNames</b> are required.
</p>
<pre>
var buttonView = {
Expand Down

0 comments on commit 48e373a

Please sign in to comment.