mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed issue with binding when there is no sourceProperty set.
This commit is contained in:
@@ -187,8 +187,13 @@ export class Binding {
|
||||
return this.sourcePropertiesArray;
|
||||
}
|
||||
|
||||
private static getProperties(property: string) {
|
||||
return property.split(".");
|
||||
private static getProperties(property: string): Array<string> {
|
||||
if (property) {
|
||||
return property.split(".");
|
||||
}
|
||||
else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
private resolveObjectsAndProperties(source: Object, propsArray: Array<string>) {
|
||||
|
||||
Reference in New Issue
Block a user