Fixes #276.
Merge pull request #277 from samyakbhuta/feature/widgetHideTimeoutAsOption

Fixes #276.