Remove optimisation

This commit is contained in:
Rossen Hristov
2016-06-24 16:23:01 +03:00
parent 53a699b50b
commit 05a3f3c846

View File

@@ -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>{