Remove optimisation

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

View File

@@ -141,34 +141,19 @@ function refreshBorderDrawable(view: view.View, borderDrawable: org.nativescript
} }
} }
let newBackground = JSON.stringify({ borderDrawable.refresh(
w: borderWidth, borderWidth,
c: borderColor, borderColor,
r: borderRadius, borderRadius,
cp: clipPath, clipPath,
bc: backgroundColor, backgroundColor,
bi: backgroundImage ? backgroundImage.hashCode() : "", backgroundImage,
br: backgroundRepeat, backgroundRepeat,
bp: backgroundPosition, backgroundPosition,
bs: backgroundSize backgroundPositionParsedCSSValues,
}); backgroundSize,
backgroundSizeParsedCSSValues
if (newBackground !== view["android-backround"]){ );
borderDrawable.refresh(
borderWidth,
borderColor,
borderRadius,
clipPath,
backgroundColor,
backgroundImage,
backgroundRepeat,
backgroundPosition,
backgroundPositionParsedCSSValues,
backgroundSize,
backgroundSizeParsedCSSValues
);
view["android-backround"] = newBackground;
}
} }
function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue>{ function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue>{