Remove unnecessary anonymous function
addEventListener can handle multiple assigned events, no need for a wrapping function.
This commit is contained in:
parent
4770b0c311
commit
1a15f22905
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue