Merge pull request #1329 from Tyriar/1319_bang_operator

Use bang operator for array methods
This commit is contained in:
Daniel Imms
2018-03-21 07:34:18 -07:00
committed by GitHub
+3 -3
View File
@@ -121,10 +121,10 @@ export class AccessibilityManager implements IDisposable {
let bottomBoundaryElement: HTMLElement;
if (position === BoundaryPosition.Top) {
topBoundaryElement = boundaryElement;
bottomBoundaryElement = <HTMLElement>this._rowElements.pop();
bottomBoundaryElement = this._rowElements.pop()!;
this._rowContainer.removeChild(bottomBoundaryElement);
} else {
topBoundaryElement = <HTMLElement>this._rowElements.shift();
topBoundaryElement = this._rowElements.shift()!;
bottomBoundaryElement = boundaryElement;
this._rowContainer.removeChild(topBoundaryElement);
}
@@ -170,7 +170,7 @@ export class AccessibilityManager implements IDisposable {
}
// Shrink rows as required
while (this._rowElements.length > rows) {
this._rowContainer.removeChild(<HTMLElement>this._rowElements.pop());
this._rowContainer.removeChild(this._rowElements.pop()!);
}
// Add bottom boundary listener