clear method

dynamic clear()
Clear the list

Implementation

clear() {
  if (_removableList)
    _list.forEach((x) => (x as IDestructible).off("destroy", _itemDestroyed));

//          lock (syncRoot)
  _list.clear();

  emitArgs("cleared", [_state]);
}