diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-13 05:33:41 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-13 05:33:41 +0000 |
| commit | 12e049a08f0682ca83989c1007e33b2641cdada8 (patch) | |
| tree | 4bad893b7122b0a4f3c619d4c111c3217975157c /roundcubemail | |
| parent | a616b886480d2cd0facb7fa532528cd7a7a5b7eb (diff) | |
* implementing patch from #1484605
git-svn-id: https://svn.roundcube.net/trunk@1064 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/js/common.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 860ca3e07..1701d3820 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -171,7 +171,12 @@ add_listener: function(p) if (p.element.addEventListener) p.element.addEventListener(p.event, p.object._rc_events[key], false); else if (p.element.attachEvent) + { + // IE allows multiple events with the same function to be applied to the same object + // forcibly detach the event, then attach + p.element.detachEvent('on'+p.event, p.object._rc_events[key]); p.element.attachEvent('on'+p.event, p.object._rc_events[key]); + } else p.element['on'+p.event] = p.object._rc_events[key]; }, |
