mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-04 11:29:40 +00:00
Remove unnecessary anonymous function
addEventListener can handle multiple assigned events, no need for a wrapping function.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user