Raynos / dom-delegator

Decorate elements with delegated events
MIT License
58 stars 16 forks source link

throttle events #10

Open ahdinosaur opened 9 years ago

ahdinosaur commented 9 years ago

it might be useful to be able to throttle events (have a max rate of event emissions), as described here.

Raynos commented 9 years ago

I see "resize" should not be in the commonEvent list.

I think updating .addGlobalEventListener to have a third options argument with a throttle property is a good idea.