forked from 0x2620/oxjs
fix use of Ox.map, Ox.loop
This commit is contained in:
parent
9a7e86dceb
commit
f97352ee61
6 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue