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

Feat: support share customized JS properties in event object. #427

Merged
merged 14 commits into from
Jul 27, 2023

Conversation

andycall
Copy link
Member

Support sharing JS objects properties in multiple event callbacks.

var p = document.createElement('p');

p.addEventListener('click', (e) => {  ee = e;
  e.dataName3 = {age: 10};
}, true);

p.addEventListener('click', (e) => {
  e.dataName3.age = 20;
});

document.body.addEventListener('click', (e) => {
  console.log('aaa', e.dataName3);
});

document.body.appendChild(p);

@yifei8 yifei8 added this pull request to the merge queue Jul 27, 2023
Merged via the queue into main with commit 3e3ee13 Jul 27, 2023
@yifei8 yifei8 deleted the feat/shared_event_object branch July 27, 2023 02:20
@andycall andycall changed the title [WIP]: Feat: support share customized JS properties in event object. Feat: support share customized JS properties in event object. Jul 27, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants