Skip to content

Commit e9820de

Browse files
committed
Merge pull request NativeScript#141 from NativeScript/image-refactor
Refactoring related to issue NativeScript#132.
2 parents a6d2fc6 + 215b361 commit e9820de

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)