mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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;
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user