Skip to content
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

can.computes that return nulls can be used with #each #743

Closed
justinbmeyer opened this issue Feb 18, 2014 · 0 comments
Closed

can.computes that return nulls can be used with #each #743

justinbmeyer opened this issue Feb 18, 2014 · 0 comments
Labels
Milestone

Comments

@justinbmeyer
Copy link
Contributor

A compute like:

var people = new can.List(["Curtis","Stan"])

var list = can.compute(function(){
  if( map.attr("showPeope") ) {
    return people
  } else {
    return null;
  }
})

does not work with {{#each}}.

VOTE HERE: http://bithub.com/event/30394

@daffl daffl added this to the 2.0.6 milestone Feb 18, 2014
@daffl daffl closed this as completed in 60314d9 Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants