Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
error passing can.Observe.List to custom Mustache element helper #438
I'm trying to pass a can.Observe.List to a custom Mustache element helper as a parameter and I get this error:
Here's a demonstration of the problem: http://jsfiddle.net/rwaldin/qc3XZ/
Uncomment the helper in the first list item to see the problem.
Sorry for bumping old issue, but I faced same error.
First of all - generated template is wrong - no can.view.pending() called after adding first tag.
Second - for Observable data types (data.isListening is true) helper return value added on mustache stack, which result invalid HTML :
Third - compete-function can return function, but do not call OR even check value is not valid object.