Project

General

Profile

Bug #19408 » rtehtmlarea_bugfix_9472_typo3_4-2_2.patch

Administrator Admin, 2008-10-05 00:14

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
*/
HTMLArea._removeEvent = function(el,evname,func) {
if (HTMLArea.is_gecko) {
// Avoid Safari 3.1.2 crashes when removing events from orphan windows or frames
if (HTMLArea.is_safari && !HTMLArea.is_chrome && el.document && !el.parent) {
// Avoid Safari crash when removing events on some orphan documents
if (!HTMLArea.is_safari || HTMLArea.is_chrome) {
try {
el.removeEventListener(evname, func, true);
el.removeEventListener(evname, func, false);
} catch(e) { }
} else if (el.nodeType != 9 || el.defaultView) {
try {
el.removeEventListener(evname, func, true);
el.removeEventListener(evname, func, false);
} catch(e) { }
}
} else {
try {
(4-4/4)