Ticket #4504: 4504.patch

File 4504.patch, 1.1 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    18541854        var preventKeyBubbling = function( e )
    18551855        {
    18561856                if ( e.data.getKeystroke() in preventKeyBubblingKeys )
    1857                         e.data.preventDefault( true );
     1857                        e.data.stopBubble();
    18581858        };
    18591859
    18601860        (function()
  • _source/core/dom/event.js

     
    8787                        $.returnValue = false;
    8888
    8989                if ( stopPropagation )
    90                 {
    91                         if ( $.stopPropagation )
    92                                 $.stopPropagation();
    93                         else
    94                                 $.cancelBubble = true;
    95                 }
     90                        this.stopBubble();
     91        },
     92
     93        stopBubble : function()
     94        {
     95                var $ = this.$;
     96                if ( $.stopPropagation )
     97                        $.stopPropagation();
     98                else
     99                        $.cancelBubble = true;
    96100        },
     101
    97102        /**
    98103         * Returns the DOM node where the event was targeted to.
    99104         * @returns {CKEDITOR.dom.node} The target DOM node.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy