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() {
window.addEventListener( 'resize', function () {
UI.applyResizeMode();
UI.updateViewClip();
UI.updateViewDrag();
} );
window.addEventListener('resize', UI.applyResizeMode);
window.addEventListener('resize', UI.updateViewClip);
window.addEventListener('resize', UI.updateViewDrag);
document.getElementById("noVNC_status")
.addEventListener('click', UI.hideStatus);