get rid of containers array

This commit is contained in:
Benjamin Pasero
2016-07-13 11:07:24 +02:00
parent 7bfdd7cecd
commit a18376a184
2 changed files with 32 additions and 31 deletions

View File

@@ -1624,6 +1624,15 @@ export class Builder implements IDisposable {
return new MultiBuilder(builders);
}
/**
* Returns a new builder with the child at the given index.
*/
public child(index = 0): Builder {
let children = this.currentElement.children;
return withElement(<HTMLElement>children.item(index));
}
/**
* Removes the current HTMLElement from the given builder from this builder if this builders
* current HTMLElement is the direct parent.