From 2f507feeee85df477492098ecaa38a4cb15bdd1a Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 24 May 2012 12:20:24 +0200 Subject: [PATCH] update examples (concat, slice) --- examples/lenna/js/example.js | 4 ++-- examples/symbols/js/example.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/lenna/js/example.js b/examples/lenna/js/example.js index dc446d72..c0412888 100644 --- a/examples/lenna/js/example.js +++ b/examples/lenna/js/example.js @@ -65,7 +65,7 @@ Ox.load('Image', function() { asynchronous and take a callback function. */ if (fn == 'src' || fn == 'encode') { - image[fn].apply(null, Ox.merge(args, function(image) { + image[fn].apply(null, args.concat(function(image) { $image.attr({src: image.src()}); })); /* @@ -73,7 +73,7 @@ Ox.load('Image', function() { function gets passed a string. */ } else if (fn == 'decode') { - image[fn].apply(null, Ox.merge(args, function(str) { + image[fn].apply(null, args.concat(function(str) { alert(str); })); /* diff --git a/examples/symbols/js/example.js b/examples/symbols/js/example.js index 951b1c31..4e73be4c 100644 --- a/examples/symbols/js/example.js +++ b/examples/symbols/js/example.js @@ -63,7 +63,7 @@ Ox.load('UI', function() { .addClass('OxGrid symbol') .append( $('').attr({src: Ox.UI.getImageURL( - 'symbol' + symbol[0].toUpperCase() + symbol.substr(1)) + 'symbol' + symbol[0].toUpperCase() + symbol.slice(1)) }) ) .appendTo($symbols);