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

compute signature not working #732

Closed
justinbmeyer opened this Issue Feb 9, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@justinbmeyer
Contributor

justinbmeyer commented Feb 9, 2014

This from the can.compute examples is not properly working:

var input = document.getElementById("age")
var value = can.compute("",{
    get: function(){
        return input.value;
    },
    set: function(newVal){
        input.value = newVal;
    },
    on: function(updated){
        input.addEventListener("change", updated, false);
    },
    off: function(updated){
        input.removeEventListener("change", updated, false);
    }
})

The updated callback can not be passed to addEventListener. I'll submit a bug and fix tomorrow.

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Feb 9, 2014

Contributor

We might want to do a 2.0.6 just for this.

Contributor

justinbmeyer commented Feb 9, 2014

We might want to do a 2.0.6 just for this.

@daffl daffl added this to the 2.0.6 milestone Feb 10, 2014

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