Convert to standard paper.js loop format.

This commit is contained in:
Jürg Lehni 2014-02-26 01:24:00 +01:00
parent 79a207ec4a
commit 2c16bd9eb1

View file

@ -78,7 +78,7 @@ var Callback = {
return false;
var args = [].slice.call(arguments, 1),
that = this;
for (var i = 0; i < handlers.length; ++i) {
for (var i = 0, l = handlers.length; i < l; 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