Opened 15 years ago
Last modified 15 years ago
#2927 closed Bug
CKEDITOR.event duplicate dom event registration — at Initial Version
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 3.0 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed Review+ | Cc: |
Description
Dom event delegation registration is currently incorrect, if the specified event were registered twice, the listener function suffer from duplicate invocation. Reproduce Steps:
- Open one editor page in FF
- Execute the following codes through console:
var body = CKEDITOR.document.getBody(); body.on('click', function(){ alert('first'); }); body.on('click', function(){ alert('another'); });
- Every listener was invoked twice.