CrowdHailer / fn.js

A JavaScript library built to encourage a functional programming style & strategy. - http://eliperelman.com/fn.js
MIT License
399 stars 30 forks source link

Make throttle and debounce configurable #2

Open eliperelman opened 10 years ago

eliperelman commented 10 years ago

Currently fn.throttle and fn.debounce invoke their handlers after the timer. Make it so this can be configured via options similar to other libraries.

CrowdHailer commented 8 years ago

I don't quite understand what this issue is. Normally I prefer distinctly named functions over configuration. If you have any expansions on this point i'd like to hear them or I will probably close this issue.

eliperelman commented 8 years ago

This was based merely on the configuration of underscore:

http://underscorejs.org/#throttle http://underscorejs.org/#debounce