Fixed issue with binding when there is no sourceProperty set.

This commit is contained in:
Nedyalko Nikolov
2015-08-31 15:49:42 +03:00
parent 9203850ea7
commit fc3c52691e
2 changed files with 25 additions and 2 deletions

View File

@@ -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>) {