forked from 0x2620/oxjs
Ox.toArray -> Ox.slice
This commit is contained in:
parent
3a28b08d46
commit
031aa4367b
11 changed files with 20 additions and 20 deletions
|
|
@ -222,7 +222,7 @@ Ox.decodeDeflate = function(string, callback) {
|
|||
// Unfortunately, we can't synchronously set the source of an image,
|
||||
// draw it onto a canvas, and read its data.
|
||||
image.onload = function() {
|
||||
string = Ox.toArray(Ox.canvas(image).data).map(function(value, index) {
|
||||
string = Ox.slice(Ox.canvas(image).data).map(function(value, index) {
|
||||
// Read one character per RGB byte, ignore ALPHA.
|
||||
return index % 4 < 3 ? Ox.char(value) : '';
|
||||
}).join('');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue