This commit is contained in:
rolux 2012-05-23 17:45:20 +02:00
parent de30af0656
commit c949b304ba

View file

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