Generate computes from an observe property #203

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

Comments

Projects
None yet
1 participant
@daffl
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 in a6d2436 Dec 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment