Cross Reference:
xref
: /
yui3
/
sandbox
/
colly
/
js
/
arraylist-add.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
arraylist-add.js revision e09da100d0c76f9a0d5c9e3d60a44c29b2402e9d
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
;
}
});