Ticket #2923: 2923_2.patch

File 2923_2.patch, 977 bytes (added by Artur Formella, 15 years ago)
  • _source/core/dom/domobject.js

     
    5050        {
    5151                return function( domEvent )
    5252                {
    53                         domObject.fire( eventName, new CKEDITOR.dom.event( domEvent ) );
     53                        if ( undefined === window.CKEDITOR )
     54                                return;
     55
     56                        domObject.fire( eventName, new window.CKEDITOR.dom.event( domEvent ) );
    5457                };
    5558        };
    5659
  • _source/core/editor_basic.js

     
    163163                /** @ignore */
    164164                fire : function( eventName, data )
    165165                {
    166                         return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
     166                        return window.CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
    167167                },
    168168
    169169                /** @ignore */
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy