From 215b3612cbb00dbaf9965863c92160a33b515380 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Mon, 11 May 2015 13:40:12 +0300 Subject: [PATCH] Refactoring related to issue #132. --- ui/image/image-common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/image/image-common.ts b/ui/image/image-common.ts index 1b4e4046f..87db37271 100644 --- a/ui/image/image-common.ts +++ b/ui/image/image-common.ts @@ -40,11 +40,10 @@ function onSrcPropertyChanged(data: dependencyObservable.PropertyChangeData) { } else if (value instanceof imageSource.ImageSource) { // Support binding the imageSource trough the src propoerty - image.imageSource = null; image.imageSource = value; } else { - image._setNativeImage(value); + image.imageSource = imageSource.fromNativeSource(value); } }