Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Conversation

@lain-dono
Copy link

No description provided.

@blefevre
Copy link

👍 Needed access to $event in a custom event. Works great.

@LinusBorg
Copy link
Member

why would you need that if you pass the event as an argument anyway?

// define new handler
this.handler = function (e) {
e.targetVM = vm
vm.$event = e

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be interesting to store the previous value of vm.$event (if any), and restore it afterwards ? This could avoid some issues with other pieces of code that might use $event.

@LinusBorg
Copy link
Member

Hey,

thanks for the PR but since the 1.0 version is not really maintained anymore in terms of adding new features, I will close this.

@LinusBorg LinusBorg closed this May 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants