Closed (fixed)
Project:
HTML5 contentEditable
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2011 at 12:17 UTC
Updated:
24 Aug 2011 at 15:31 UTC
Jump to comment: Most recent file
Hey there,
I noticed you bind your event handlers when the field is focused, but these are never unbound. This results in some unwanted behavior:
you will now get the "Your changes were saved." message twice...
ideal solution would be to not unbind, but check which element is focussed when the callback is fired
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | html5_contenteditable-refactored.patch | 5.68 KB | seutje |
Comments
Comment #1
seutje commentedended up refactoring the entire javascript file, the resulting file is more performant, more readable and more flexible in terms of extending...
this does however fix the issue at hand...
cheers!
Comment #2
kmadel commentedThanks for the interest. I applied, committed and pushed your patch with one change, I modified a bit around the focusin for the controls. I didn't like how they just instantly appeared on the new area you were editing and wanted some effect to provide better visual feedback to the user that the controls moved.