Cross Reference:
xref
: /
yui3
/
sandbox
/
collection
/
js
/
arraylist-add.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
arraylist-add.js revision e0b4fcc24d41501061989ccb5860682c5912aaab
Y.
mix
( Y.
ArrayList
.
prototype
, {
add
:
function
(
item
) {
this
.
_items
.
push
(
item
);
return
this
;
},
remove
:
function
(
item
) {
var
i =
this
.
indexOf
(
item
);
if
(i > -
1
) {
this
.
_items
.
splice
(i,
1
);
}
return
this
;
}
});