mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fixed tslint errors.
This commit is contained in:
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user