Skip to content

Commit 42603bf

Browse files
committed
Update keyboard.js
lol you are right i didn't follow the whole conversation because I couldn't understand why it mattered since an array is an object also... but why don't we make it an empty object without the Object.prototype. By using Object.create(null);
1 parent d3da9cd commit 42603bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/keyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ define(function (require) {
230230
* been released.
231231
*/
232232
p5.prototype.onblur = function (e) {
233-
downKeys =[];
233+
downKeys ={};
234234
};
235235

236236
/**

0 commit comments

Comments
 (0)