use slice, not sub

This commit is contained in:
rolux 2012-05-24 08:55:14 +02:00
parent c3c79e5f0a
commit dc1f486967

View file

@ -85,9 +85,9 @@ Ox.load('Image', function() {
status('Decode all bits of iceland.png');
iceland.decode(-1, function(src) {
result(
Ox.sub(src, 0, 32) + '<i> ... ['
src.slice(0, 32) + '<i> ... ['
+ Ox.formatNumber(src.length - 64)
+ ' more bytes] ... </i>' + Ox.sub(src, -32)
+ ' more bytes] ... </i>' + src.slice(-32)
);
status('Load as vietnam.png');
Ox.Image(src, function(image) {