use slice, not sub
This commit is contained in:
parent
c3c79e5f0a
commit
dc1f486967
1 changed files with 2 additions and 2 deletions
|
@ -85,9 +85,9 @@ Ox.load('Image', function() {
|
||||||
status('Decode all bits of iceland.png');
|
status('Decode all bits of iceland.png');
|
||||||
iceland.decode(-1, function(src) {
|
iceland.decode(-1, function(src) {
|
||||||
result(
|
result(
|
||||||
Ox.sub(src, 0, 32) + '<i> ... ['
|
src.slice(0, 32) + '<i> ... ['
|
||||||
+ Ox.formatNumber(src.length - 64)
|
+ Ox.formatNumber(src.length - 64)
|
||||||
+ ' more bytes] ... </i>' + Ox.sub(src, -32)
|
+ ' more bytes] ... </i>' + src.slice(-32)
|
||||||
);
|
);
|
||||||
status('Load as vietnam.png');
|
status('Load as vietnam.png');
|
||||||
Ox.Image(src, function(image) {
|
Ox.Image(src, function(image) {
|
||||||
|
|
Loading…
Reference in a new issue