mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user