1
0
Fork 0

[client] More contains -> includes

This commit is contained in:
Starbeamrainbowlabs 2017-04-16 16:53:06 +01:00
parent 3cb7c1576f
commit 71b1042e13
1 changed files with 1 additions and 1 deletions

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);
} }