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

Generate computes from an observe property #203

Closed
daffl opened this issue Dec 10, 2012 · 0 comments
Closed

Generate computes from an observe property #203

daffl opened this issue Dec 10, 2012 · 0 comments

Comments

@daffl
Copy link
Contributor

daffl commented Dec 10, 2012

For 1.1.3 we want to be able to do the following:

o = new can.Observe({name: "David"})
o.compute("name") // -> compute
compute.bind("change", function(ev, newVal,oldVal ) {}) 
compute() // -> "David"
compute("Justin")
compute() // -> Justin
@daffl daffl closed this as completed in a6d2436 Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant