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

Passing an object to can-map with a function on it errors on bind #113

Open
mikemitchel opened this issue Aug 8, 2018 · 1 comment
Open

Comments

@mikemitchel
Copy link
Contributor

throws error:

var guide = new can.Map({
  foo() {}
})

guide.bind('change', console.log.bind(console));

ok:

var guide = new can.Map({
  bar: ""
})

guide.bind('change', console.log.bind(console));

jsbin example:
http://jsbin.com/lifuxus/edit?html,js,console,output

@chasenlehara
Copy link
Member

This sounds similar to canjs/can-list#97, which was fixed in [email protected] or [email protected]. @mikemitchel can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants