1
0
Fork 0
forked from 0x2620/oxjs

fix use of Ox.map, Ox.loop

This commit is contained in:
j 2012-05-23 17:13:38 +02:00
commit f97352ee61
6 changed files with 10 additions and 10 deletions

View file

@ -345,7 +345,7 @@ Ox.load.Image = function(options, callback) {
// Array of bits per byte to be modified (0 is LSB)
bits = mode < 1 ? [-mode] : Ox.filter(Ox.range(8), function(i) {
return mode & 1 << i;
};
}),
cap = getCapacity(bits.length), len;
// Compress the string
str = Ox[deflate ? 'encodeDeflate' : 'encodeUTF8'](str);
@ -362,7 +362,7 @@ Ox.load.Image = function(options, callback) {
return Ox.range(8).map(function(i) {
return chr.charCodeAt(0) >> 7 - i & 1;
});
}));
}).split(','));
b = 0;
that.forEach(function(rgba, xy, index) {
// If alpha is not 255, the RGB values may not be preserved