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);