X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fdom%2Fevent.js;h=e8a1e1249e4a4a3dd134016335bdf95ce8cbf5de;hp=765c82c4497fa2480c9a02aece1d150555629e9e;hb=8761695d9b70afe75905deaac88f78c1f8aeb32d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_source/core/dom/event.js b/_source/core/dom/event.js index 765c82c..e8a1e12 100644 --- a/_source/core/dom/event.js +++ b/_source/core/dom/event.js @@ -87,13 +87,18 @@ CKEDITOR.dom.event.prototype = $.returnValue = false; if ( stopPropagation ) - { - if ( $.stopPropagation ) - $.stopPropagation(); - else - $.cancelBubble = true; - } + this.stopPropagation(); }, + + stopPropagation : function() + { + var $ = this.$; + if ( $.stopPropagation ) + $.stopPropagation(); + else + $.cancelBubble = true; + }, + /** * Returns the DOM node where the event was targeted to. * @returns {CKEDITOR.dom.node} The target DOM node.