From effbffac0fa8b46efd224e75f20aec772ecf97dc Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Fri, 28 Apr 2017 15:32:19 +0300 Subject: [PATCH] Binding Image's src to 'res://icon' fails as bindings wrap string in String --- tns-core-modules/ui/image/image-common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/image/image-common.ts b/tns-core-modules/ui/image/image-common.ts index 9d45e66a4..625c8c76e 100644 --- a/tns-core-modules/ui/image/image-common.ts +++ b/tns-core-modules/ui/image/image-common.ts @@ -28,7 +28,7 @@ export abstract class ImageBase extends View implements ImageDefinition { let value = this.src; let originalValue = value; let sync = this.loadMode === "sync"; - if (typeof value === "string") { + if (typeof value === "string" || value instanceof String) { value = value.trim(); this.imageSource = null; this["_url"] = value;