Fixed tslint errors.

This commit is contained in:
Nedyalko Nikolov
2017-01-11 15:35:05 +02:00
parent 858ec268de
commit 9479a9918f
3 changed files with 1 additions and 12 deletions

View File

@ -1,6 +1,4 @@
import { Template } from "ui/core/view"
import { Property } from "ui/core/properties"
import * as proxy from "ui/core/proxy"
import { LayoutBase } from "ui/layouts/layout-base"
import { parse } from "ui/builder"

View File

@ -255,13 +255,8 @@ export class SegmentedBar extends SegmentedBarBase {
this._android.clearAllTabs();
const newItems = value;
let tabHost = this._android;
if (newItems) {
newItems.forEach((item, i, arr) => this.insertTab(item, i));
// if (this.selectedIndex < 0) {
// this.selectedIndex = tabHost.getCurrentTab();
// }
}
}
}
@ -285,4 +280,4 @@ function ensureTabHostClass() {
}
TabHostClass = OurTabHost;
}
}

View File

@ -56,10 +56,6 @@ export class SegmentedBar extends SegmentedBarBase {
title = (title === null || title === undefined) ? "" : title;
segmentedControl.insertSegmentWithTitleAtIndexAnimated(title, index, false);
})
// if (this.selectedIndex < 0) {
// this.selectedIndex = segmentedControl.selectedSegmentIndex;
// }
}
}