Javascript CustomEvent detail not getting passed

前端 未结 3 1898
别那么骄傲
别那么骄傲 2021-02-08 10:30

I am trying to create a custom javascript event. The event works and fires correctly, but the \'detail\' object that I\'m passing it is not available.

Here\'s the code i

3条回答
  •  清歌不尽
    2021-02-08 11:11

    I found the following commit: https://github.com/jquery/jquery/commit/a90ff8c8c79bfcc32afd340a12f016f20a31d8b6

    This fix is in jQuery's compat branch and should be fixed as of jQuery 3.0.

提交回复
热议问题