Skip to content

Commit

Permalink
Fix English in 'debounce()' description
Browse files Browse the repository at this point in the history
There's an important difference between restrictive ('which') and nonrestrictive relative clauses ('that') in English. 

Since all versions of debounce meet the description given, 'which' is the correct word. 

Additionally this means people who don't know what a debounced function is won't stop reading (currently it implies that some unknown things have a certain behvaior, rather than all unknown things having a certain behavior, ie, right now it's not a definition, with 'which' it would be).  
  • Loading branch information
mikemaccana committed Apr 10, 2013
1 parent a9c9dea commit 2d3f3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ <h2 id="functions">Function (uh, ahem) Functions</h2>
<p id="debounce">
<b class="header">debounce</b><code>_.debounce(function, wait, [immediate])</code>
<br />
Creates and returns a new debounced version of the passed function that
Creates and returns a new debounced version of the passed function which
will postpone its execution until after
<b>wait</b> milliseconds have elapsed since the last time it
was invoked. Useful for implementing behavior that should only happen
Expand Down

0 comments on commit 2d3f3dd

Please sign in to comment.