weixin_39710041
weixin_39710041
2020-12-06 19:29

trigger custom events in addition to jquery events

According to the discussion in #180 the first step to removing the jquery events is to trigger native events in addition to the jquery ones.

This PR triggers native events everywhere that jquery events are triggered. All events are also renamed, since they would trigger duplicates otherwise (jquery listens to both jquery and native events alike, but only triggers jquery events).

In order to drop the jquery events, it is also needed to change all listeners, since the event data looks slightly different.

I'm willing to take on converting all the listeners as well, since it solves some bugs I've had with running multiple instances of jQuery, and events not triggering properly.

该提问来源于开源项目:cornerstonejs/cornerstone

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐

换一换