From 2c16bd9eb10753de5ff52a15a4f6fe019a408ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 26 Feb 2014 01:24:00 +0100 Subject: [PATCH] Convert to standard paper.js loop format. --- src/core/Callback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Callback.js b/src/core/Callback.js index 29faa39a..42268ac7 100644 --- a/src/core/Callback.js +++ b/src/core/Callback.js @@ -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