]> git.proxmox.com Git - mirror_novnc.git/commit
Use ES6 classes
authorJuanjo Diaz <juanjo.diazmo@gmail.com>
Thu, 5 Jul 2018 19:31:56 +0000 (21:31 +0200)
committerJuanjo Diaz <juanjo.diazmo@gmail.com>
Thu, 12 Jul 2018 17:06:57 +0000 (19:06 +0200)
commit0e4808bf6f3165f7daa1282af445f6ea7e60de55
tree956ae93dd7725a7f9ae92ed4d33a477402688378
parent67fefcf184c1f291292027a785b333ba1a16f0c9
Use ES6 classes
Always use the shorthand notation if the function is a method of an object or class `{ foo() { ... } }` or `class bar { foo() { ... } }`
unless it's a callback in which case you a fat arrow function should be used `{ cb: () => { ... } }`
20 files changed:
.eslintrc
app/localization.js
app/ui.js
core/base64.js
core/display.js
core/inflator.js
core/input/keyboard.js
core/input/keysymdef.js
core/input/mouse.js
core/rfb.js
core/util/cursor.js
core/util/eventtarget.js
core/util/strings.js
core/websock.js
tests/.eslintrc
tests/fake.websocket.js
tests/playback-ui.js
tests/playback.js
tests/test.rfb.js
tests/test.webutil.js