mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix event handlers for paperjs/paper.js#409
This commit is contained in:
parent
4c048dbc94
commit
aa2102ecb9
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ var Callback = {
|
|||
return false;
|
||||
var args = [].slice.call(arguments, 1),
|
||||
that = this;
|
||||
for (var i in handlers) {
|
||||
for (var i = 0; i < handlers.length; ++i) {
|
||||
// When the handler function returns false, prevent the default
|
||||
// behaviour and stop propagation of the event by calling stop()
|
||||
if (handlers[i].apply(that, args) === false
|
||||
|
|
Loading…
Reference in a new issue