forked from 0x2620/oxjs
update examples (concat, slice)
This commit is contained in:
parent
64c01e385d
commit
2f507feeee
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}));
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue