Changeset 1771

Show
Ignore:
Timestamp:
2008-03-22 13:23:07 (5 months ago)
Author:
alfonsoml
Message:

Adjustement of #2002 to avoid a strict warning in chrome:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/fckeditor.html

    r1732 r1771  
    343343                // we care only about this window. Ticket #1642. 
    344344                // #2002: The originalTarget from the event can be the current document, the window, or the editing area. 
    345                 if ( e && e.originalTarget !== document && e.originalTarget !== window && e.originalTarget.ownerDocument != document ) 
     345                if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) 
    346346                        return ; 
    347347