Closed ma3yta closed 8 years ago
The code flows into this method and fails every test, despite the expression.expression being class AccessScope:
function getPropertyInfo(expression, source) {
var originalExpression = expression;
while (expression instanceof _aureliaBinding.BindingBehavior || expression instanceof _aureliaBinding.ValueConverter) {
expression = expression.expression;
}
var object = void 0;
var property = void 0;
if (expression instanceof _aureliaBinding.AccessScope) {
object = source.bindingContext;
property = expression.name;
} else if (expression instanceof _aureliaBinding.AccessMember) {
object = getObject(originalExpression, expression.object, source);
property = expression.name;
} else if (expression instanceof _aureliaBinding.AccessKeyed) {
object = getObject(originalExpression, expression.object, source);
property = expression.key.evaluate(source);
} else {
throw new Error('Expression \'' + originalExpression + '\' is not compatible with the validate binding-behavior.');
}
return { object: object, property: property };
}
});
@jdanyow Apparently expression, a BindingBehavior object, is not an instance of _aureliaBinding.BindingBehavior. I would think it should be, no?
you have forks- jspm inspect --forks
yep- so now you should jspm install
every aurelia dependency in your package.json to bring everything up to date. This will resolve the issue.
I got error Expression 'email&validate' is not compatible with the validate binding-behavior.