-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot call functions returned by functions #587
Comments
This makes things like |
Step 1make a test for getting the expression AST built right. Example test: can-stache/test/expression-test.js Line 81 in 83191d3
An expression like {
type: "Call",
children: [
{
type: "Call",
method: {type: "Lookup", "@foo"},
children: []
}
]
} Step 2Update the parse to create this. That will happen somewhere around here: Line 446 in 83191d3
Step 3This ast can hydrate correctly into nested Call expressions. This hydration happens around here: Line 278 in 83191d3
Might want to write a test for hydration. Example: can-stache/test/expression-test.js Line 582 in 83191d3
Step 4Make sure the Testing expr = new expression.Call(
new expression.Call({
new expression.Lookup("bar"),
[ new expression.Literal(1) ]
}),
[ new expression.Literal(2) ]
);
compute = expr.value(
new Scope(
new SimpleMap({foo: function( one){ return function( two ){ ... } } })
)
); Might need to change can-stache/expressions/call.js Line 66 in 83191d3
|
@Mattchewone Can this be closed now? |
Yup still haven't got the hang of having the MR's close issues :( |
This template:
...gives this error:
The text was updated successfully, but these errors were encountered: