Fix event handlers for paperjs/paper.js#409

This commit is contained in:
patrickheeney 2014-02-25 13:02:53 -07:00
parent 4c048dbc94
commit aa2102ecb9

View file

@ -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