Skip to content

Commit

Permalink
Removed comment bloat from js which is now documented in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Jan 5, 2011
1 parent 40b18da commit 7be1528
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions jquery.bind.js
@@ -1,13 +1,14 @@
/**
* jQuery Bind Bonuses
* https://github.com/DrPheltRight/jQuery-Bind-Bonuses
*
* This jQuery plugin (if you can call it that) adds two methods
* to your toolkit. The first bindStop, is like bind apart from
* it waits until the event has stopped before calling it's
* callback. Example uses include form validation. The second is
* bindThrottle that throttles events.
*
* Both methods unlike bind accept a third parameter, "delay",
* Both methods unlike bind accept a fourth parameter, "delay",
* which is the amount of time they wait until they call your
* callback.
*
Expand All @@ -16,34 +17,7 @@
* @author Luke Morton, 2011
* @license MIT
*/
/**
* $.fn.bindStop
*
* This method waits until delay time after the last
* occurance of event, then calls the callback.
*
* @param string jQuery event, e.g. 'click', 'keydown'
* @param object jQuery event data
* @param callback Callback function
* @param mixed jQuery duration, e.g. 'slow', 'fast'
* or an integer (milliseconds)
* @return this
*/
/**
* $.fn.bindThrottle
*
* This method only calls a callback if the event hasn't
* been called in the last delay. If it has been called
* it waits until after the throttle time to call it.
*
* @param string jQuery event, e.g. 'click', 'keydown'
* @param object jQuery event data
* @param callback Callback function
* @param mixed jQuery duration, e.g. 'slow', 'fast'
* or an integer (milliseconds)
* @return this
*/


(function ($) {

// Get jQuery duration
Expand Down

0 comments on commit 7be1528

Please sign in to comment.