mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
get rid of containers array
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user