Cross Reference:
xref
: /
yui3
/
build
/
collection
/
array-invoke-debug.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
array-invoke-debug.js revision 266bfbd67fc220029bdadabd3c49e733f9f39360
YUI
.
add
(
'array-invoke'
,
function
(Y) {
Y.
Array
.
invoke
=
function
(
items
,
name
) {
var
args
= Y.
Array
(
arguments
,
2
,
true
),
isFunction
= Y.
Lang
.
isFunction
,
ret
= [];
Y.
Array
.
each
( Y.
Array
(
items
),
function
(
item
, i ) {
if
(
isFunction
(
item
[
name
] ) ) {
ret
[i] =
item
[
name
].
apply
(
item
,
args
);
}
});
return
ret
;
};
},
'@VERSION@'
);