Removes all of the element's items.
none
None.
The clearItems function removes all items from an element's list of items. When called on a list element, for example, the function removes all items from the selection pool. When called from a stimulus element, all stimulus items are removed.
The following clears all of the items from a text stimulus:
<trial myTrial>
/ onTrialEnd= [text.myText.clearItems();]
</trial>
The following clears all of the items from the selection pool of a list:
<trial myTrial>
/ onTrialEnd= [list.mylist.clearItems();]
</trial>