Fix #6641 - add events for handling view and download
[roojs1] / undefined