artdaq_node_server
v1_00_07
|
// Avoid excessively updating the position while scrolling. jQuery(window).on('scroll', _.throttle(updatePosition, 100));
// Invoke renewToken
when the click event is fired, but not more than once every 5 minutes. var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); jQuery(element).on('click', throttled);
// Cancel the trailing throttled invocation. jQuery(window).on('popstate', throttled.cancel);