Panel: panelclose event does not work

panelclose is not bound to document after _openPanel

Fixes gh-7058


remove extra line here