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

@event expression is not handled correctly #2670

Closed
pkawiak opened this issue Apr 14, 2016 · 1 comment
Closed

@event expression is not handled correctly #2670

pkawiak opened this issue Apr 14, 2016 · 1 comment
Labels

Comments

@pkawiak
Copy link

pkawiak commented Apr 14, 2016

Vue.js version

1.0.21

Reproduction Link

http://codepen.io/pkawiak/pen/grezPW?editors=1111

Steps to reproduce

Click model.log and model.log() buttons and observe console. Replace model by clicking Replace Model button and repeat clicking model.log and model.log() buttons.

What is Expected?

  1. Click model.log(): Model 1 message appears in console.
  2. Click model.log: Model 1 message appears in console.
  3. Click Replace Model: model is replaced.
  4. Click model.log(): Model 2 message appears in the console.
  5. Click model.log: Model 2 message appears in the console.

What is actually happening?

  1. Click model.log(): Model 1 message appears in console.
  2. Click model.log: Model 1 message appears in console.
  3. Click Replace Model: model is replaced.
  4. Click model.log(): Model 2 message appears in the console.
  5. Click model.log: Model 1 message appears in the console.
@paulpflug
Copy link

hmm strange, even

this.$set("model.log",m2.log)

doesn't change the v-on:press='model.log' binding to the m2.log

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

3 participants