mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Remove optimisation
This commit is contained in:
@@ -141,19 +141,6 @@ 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,
|
||||
@@ -167,8 +154,6 @@ function refreshBorderDrawable(view: view.View, borderDrawable: org.nativescript
|
||||
backgroundSize,
|
||||
backgroundSizeParsedCSSValues
|
||||
);
|
||||
view["android-backround"] = newBackground;
|
||||
}
|
||||
}
|
||||
|
||||
function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue>{
|
||||
|
||||
Reference in New Issue
Block a user