Ticket #4504: 4504_2.patch

File 4504_2.patch, 1.7 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.stopPropagation();
    18581858        };
    18591859
    18601860        (function()
  • _source/plugins/sourcearea/plugin.js

     
    8080                                                                // inside of it (non IE).
    8181                                                                textarea.on( 'mousedown', function( evt )
    8282                                                                        {
    83                                                                                 evt = evt.data.$;
    84                                                                                 if ( evt.stopPropagation )
    85                                                                                         evt.stopPropagation();
     83                                                                                evt.data.stopPropagation();
    8684                                                                        } );
    8785                                                        }
    8886
  • _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.stopPropagation();
     91        },
     92
     93        stopPropagation : 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