COde cleanup

This commit is contained in:
vakrilov
2015-07-06 14:43:40 +03:00
parent ac6801fd1c
commit 6bb875cb8e
4 changed files with 2 additions and 5 deletions

View File

@ -19,7 +19,6 @@ export function getNativeColor(button: buttonModule.Button): colorModule.Color {
export function getNativeBackgroundColor(button: buttonModule.Button): colorModule.Color {
var bkg = <any>button.android.getBackground();
var color;
if (bkg instanceof background.ad.BorderDrawable) {
return (<background.ad.BorderDrawable>bkg).background.color;
}

View File

@ -28,7 +28,6 @@ export function getNativeColor(textField: textFieldModule.TextField): colorModul
export function getNativeBackgroundColor(textField: textFieldModule.TextField): colorModule.Color {
var bkg = <any>textField.android.getBackground();
var color;
if (bkg instanceof background.ad.BorderDrawable) {
return (<background.ad.BorderDrawable>bkg).background.color;
}

View File

@ -32,7 +32,6 @@ export function getNativeColor(textView: textViewModule.TextView): colorModule.C
export function getNativeBackgroundColor(textView: textViewModule.TextView): colorModule.Color {
var bkg = <any>textView.android.getBackground();
var color;
if (bkg instanceof background.ad.BorderDrawable) {
return (<background.ad.BorderDrawable>bkg).background.color;
}