From dc1f486967668af277d24a77fdd43681345b9a55 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 24 May 2012 08:55:14 +0200 Subject: [PATCH] use slice, not sub --- examples/steganography/js/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/steganography/js/example.js b/examples/steganography/js/example.js index a0c52522..a18abe5c 100644 --- a/examples/steganography/js/example.js +++ b/examples/steganography/js/example.js @@ -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) + ' ... [' + src.slice(0, 32) + ' ... [' + Ox.formatNumber(src.length - 64) - + ' more bytes] ... ' + Ox.sub(src, -32) + + ' more bytes] ... ' + src.slice(-32) ); status('Load as vietnam.png'); Ox.Image(src, function(image) {