[BUG #7897] Added support for a 'throttle' method to throttle function calls which is especially useful in combination with event handling.