mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Convert to standard paper.js loop format.
This commit is contained in:
parent
79a207ec4a
commit
2c16bd9eb1
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 = 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
|
||||
|
|
Loading…
Reference in a new issue