From 05a3f3c846935e75047e1d85051f99c1a5293c30 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Fri, 24 Jun 2016 16:23:01 +0300 Subject: [PATCH] Remove optimisation --- .../ui/styling/background.android.ts | 41 ++++++------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/tns-core-modules/ui/styling/background.android.ts b/tns-core-modules/ui/styling/background.android.ts index 95beca09e..2b66ff184 100644 --- a/tns-core-modules/ui/styling/background.android.ts +++ b/tns-core-modules/ui/styling/background.android.ts @@ -141,34 +141,19 @@ function refreshBorderDrawable(view: view.View, borderDrawable: org.nativescript } } - let newBackground = JSON.stringify({ - w: borderWidth, - c: borderColor, - r: borderRadius, - cp: clipPath, - bc: backgroundColor, - bi: backgroundImage ? backgroundImage.hashCode() : "", - br: backgroundRepeat, - bp: backgroundPosition, - bs: backgroundSize - }); - - if (newBackground !== view["android-backround"]){ - borderDrawable.refresh( - borderWidth, - borderColor, - borderRadius, - clipPath, - backgroundColor, - backgroundImage, - backgroundRepeat, - backgroundPosition, - backgroundPositionParsedCSSValues, - backgroundSize, - backgroundSizeParsedCSSValues - ); - view["android-backround"] = newBackground; - } + borderDrawable.refresh( + borderWidth, + borderColor, + borderRadius, + clipPath, + backgroundColor, + backgroundImage, + backgroundRepeat, + backgroundPosition, + backgroundPositionParsedCSSValues, + backgroundSize, + backgroundSizeParsedCSSValues + ); } function createNativeCSSValueArray(css: string): native.Array{