Skip to content

Commit 215b361

Browse files
committed
Refactoring related to issue NativeScript#132.
1 parent a6d2fc6 commit 215b361

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/image/image-common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ function onSrcPropertyChanged(data: dependencyObservable.PropertyChangeData) {
4040
}
4141
else if (value instanceof imageSource.ImageSource) {
4242
// Support binding the imageSource trough the src propoerty
43-
image.imageSource = null;
4443
image.imageSource = value;
4544
}
4645
else {
47-
image._setNativeImage(value);
46+
image.imageSource = imageSource.fromNativeSource(value);
4847
}
4948
}
5049

0 commit comments

Comments
 (0)