mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed getting object properties too many times.
This commit is contained in:
@@ -255,7 +255,8 @@ export class Binding {
|
||||
currentObjectChanged = true;
|
||||
}
|
||||
result.push({ instance: currentObject, property: objProp });
|
||||
if (!currentObjectChanged) {
|
||||
// do not need to dive into last object property getter on binding stage will handle it
|
||||
if (!currentObjectChanged && (i < propsArrayLength - 1)) {
|
||||
currentObject = currentObject ? currentObject[propsArray[i]] : null;
|
||||
}
|
||||
currentObjectChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user