Remove unnecessary anonymous function

addEventListener can handle multiple assigned events, no need for a
wrapping function.
This commit is contained in:
Samuel Mannehed 2016-10-24 14:08:53 +02:00
parent 4770b0c311
commit 1a15f22905
1 changed files with 3 additions and 5 deletions

View File

@ -168,11 +168,9 @@ var UI;
}, },
setupWindowEvents: function() { setupWindowEvents: function() {
window.addEventListener( 'resize', function () { window.addEventListener('resize', UI.applyResizeMode);
UI.applyResizeMode(); window.addEventListener('resize', UI.updateViewClip);
UI.updateViewClip(); window.addEventListener('resize', UI.updateViewDrag);
UI.updateViewDrag();
} );
document.getElementById("noVNC_status") document.getElementById("noVNC_status")
.addEventListener('click', UI.hideStatus); .addEventListener('click', UI.hideStatus);