From 1ac080f6dd088a12e0f41acd51b8ed5939804519 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 11 Jul 2012 14:45:59 +0200 Subject: [PATCH] fix a bug in Ox.Image forEach --- source/Ox.Image/Ox.Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.Image/Ox.Image.js b/source/Ox.Image/Ox.Image.js index 70af9170..c9417ef1 100644 --- a/source/Ox.Image/Ox.Image.js +++ b/source/Ox.Image/Ox.Image.js @@ -525,7 +525,7 @@ Ox.load.Image = function(options, callback) { var data = self.data, forEach = callback ? Ox.nonblockingForEach : Ox.forEach; forEach(Ox.range(0, data.length, 4), function(i) { - iterator([ + return iterator([ data[i], data[i + 1], data[i + 2], data[i + 3] ], getXY(i), i); }, callback, 250);