mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Refactoring related to issue #132.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user