mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added support for in expressions.
This commit is contained in:
@@ -458,6 +458,9 @@ export class Binding {
|
||||
private prepareContextForExpression(model, expression) {
|
||||
var parentViewAndIndex;
|
||||
var parentView;
|
||||
if (expression.indexOf(bc.bindingValueKey) > -1) {
|
||||
model[bc.bindingValueKey] = model;
|
||||
}
|
||||
if (expression.indexOf(bc.parentValueKey) > -1) {
|
||||
parentView = this.getParentView(this.target.get(), bc.parentValueKey).view;
|
||||
if (parentView) {
|
||||
|
||||
Reference in New Issue
Block a user