]> git.proxmox.com Git - mirror_novnc.git/blobdiff - core/util/events.js
Use fat arrow functions `const foo = () => { ... };` for callbacks
[mirror_novnc.git] / core / util / events.js
index 66527fa6b33289c0c686af4a4c091157338d0965..a0eddc71f2a2148c7f906bfb003b0a1654070ae9 100644 (file)
@@ -120,7 +120,7 @@ export function releaseCapture () {
 
         // There might be events already queued, so we need to wait for
         // them to flush. E.g. contextmenu in Microsoft Edge
-        window.setTimeout(function(expected) {
+        window.setTimeout((expected) => {
             // Only clear it if it's the expected grab (i.e. no one
             // else has initiated a new grab)
             if (_captureIndex === expected) {