How to take first occurrence and then supress events for 2 seconds (RxJS)
I think RxJS should perfectly fit to supress dublicate button clicks for 2 seconds. However, Im struggleing with the implementation. var $button = $('#myButton').button(); $button .toObservable("click") //.Throttle(2000) // Wouldn't fire the first event instantly :-( .Subscribe(function(){ alert('clicked'); }); I already created a jsFiddle for your convenience. You need to scroll down in this fiddle, because I just pasted Rx inside as I couldn't find a CDN. http://jsfiddle.net/cburgdorf/mUMFA/2/ I converted Sergeys answer into JavaScript and think this should be the final way to go. var