Fix for Button padding in android.

Fix for types - isString and isNumber.
Modified several tests to pass on VS Emulator for Android.
Fix page background to be applied in onLoaded method.
Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not.
Remove android_constants because they are per theme and we cannot use them safely.
Fix for SearchBar reseColorProperty method.
This commit is contained in:
hshristov
2015-08-28 16:57:00 +03:00
parent c05cd6acb8
commit 3a0cc32ff2
20 changed files with 398 additions and 275 deletions

View File

@@ -1,9 +0,0 @@
export var btn_default = 0x01080004;
export var state_first = 0x010100a4;
export var state_enabled = 0x0101009e;
export var state_pressed = 0x010100a7;
export var state_selected = 0x010100a1;
export var state_single = 0x010100a3;
export var state_hovered = 0x01010367;
export var state_focused = 0x0101009c;

View File

@@ -1,9 +1,9 @@
export function isString(value: any): boolean {
return typeof value === "string";
return typeof value === "string" || value instanceof String;
}
export function isNumber(value: any): boolean {
return typeof value === "number";
return typeof value === "number" || value instanceof Number;
}
export function isFunction(value: any): boolean {