1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[client] More contains -> includes

This commit is contained in:
Starbeamrainbowlabs 2017-04-16 16:53:06 +01:00
parent 3cb7c1576f
commit 71b1042e13

View file

@ -22,7 +22,7 @@ class Keyboard
* @param {KeyboardEvent} event The keyboard event to handle. * @param {KeyboardEvent} event The keyboard event to handle.
*/ */
handleKeyDown(event) { handleKeyDown(event) {
if(!this.DownKeys.contains(event.keyCode)) if(!this.DownKeys.includes(event.keyCode))
this.DownKeys.push(event.keyCode); this.DownKeys.push(event.keyCode);
} }