Skip to content

Commit c6aa37c

Browse files
Merge pull request #52 from vpython/Fix_bind_function_to_work_with_VPython7
Fix bind function to work with VPython 7
2 parents bd8559d + ee78f1a commit c6aa37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/glow/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@
475475
if (eventTypes.search('key') >= 0) this.__expecting_key = true
476476
for (var i=0; i<this.events.length; i++) {
477477
if (this.events[i][1] === callback) {
478-
this.events[i][0] = eventTypes
478+
this.events[i][0] += ' '+eventTypes
479479
return
480480
}
481481
}

0 commit comments

Comments
 (0)