📝 list: docs

This commit is contained in:
Joao Moreno
2017-03-14 17:25:28 +01:00
parent b1cb85e402
commit 2f4b91324b

View File

@@ -97,6 +97,12 @@ class Trait<T> implements ISpliceable<boolean>, IDisposable {
DOM.toggleClass(container, this._trait, this.contains(index));
}
/**
* Sets the indexes which should have this trait.
*
* @param indexes Indexes which should have this trait.
* @return The old indexes which had this trait.
*/
set(indexes: number[]): number[] {
const result = this.indexes;
this.indexes = indexes;