Refactoring related to issue #132.

This commit is contained in:
Rossen Hristov
2015-05-11 13:40:12 +03:00
parent a6d2fc6929
commit 215b3612cb

View File

@ -40,11 +40,10 @@ function onSrcPropertyChanged(data: dependencyObservable.PropertyChangeData) {
} }
else if (value instanceof imageSource.ImageSource) { else if (value instanceof imageSource.ImageSource) {
// Support binding the imageSource trough the src propoerty // Support binding the imageSource trough the src propoerty
image.imageSource = null;
image.imageSource = value; image.imageSource = value;
} }
else { else {
image._setNativeImage(value); image.imageSource = imageSource.fromNativeSource(value);
} }
} }