fix a bug in Ox.Image forEach

This commit is contained in:
rolux 2012-07-11 14:45:59 +02:00
parent 443a2fed9b
commit 1ac080f6dd

View file

@ -525,7 +525,7 @@ Ox.load.Image = function(options, callback) {
var data = self.data, var data = self.data,
forEach = callback ? Ox.nonblockingForEach : Ox.forEach; forEach = callback ? Ox.nonblockingForEach : Ox.forEach;
forEach(Ox.range(0, data.length, 4), function(i) { forEach(Ox.range(0, data.length, 4), function(i) {
iterator([ return iterator([
data[i], data[i + 1], data[i + 2], data[i + 3] data[i], data[i + 1], data[i + 2], data[i + 3]
], getXY(i), i); ], getXY(i), i);
}, callback, 250); }, callback, 250);