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

Optimize event handlers #1316

Merged
merged 3 commits into from Dec 31, 2019
Merged

Optimize event handlers #1316

merged 3 commits into from Dec 31, 2019

Conversation

cpylua
Copy link
Collaborator

@cpylua cpylua commented Dec 31, 2019

  1. Deprecate node.addEventListener, use utils/component/event-handler instead
  2. Replace throttle and debounce with runOnceInNextFrame whenever possible
  3. Fix a bug in ClampLines causing incorrect line number in result
  4. Remove delay prop in ClampLines, it's nonsense

@cpylua cpylua merged commit 2a6f17c into master Dec 31, 2019
@cpylua cpylua deleted the optimize-event-handlers branch December 31, 2019 07:46
@notzheng
Copy link

notzheng commented Dec 4, 2020

这个 PR 中 Affix 组件的 placeHoldClassName props 更改为 placeholderClassName,应该体现到文档里。

@cpylua
Copy link
Collaborator Author

cpylua commented Dec 4, 2020

不要在已经 merge 的 PR 下面题问题。

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

2 participants