Skip to content

Commit

Permalink
Add missing braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this authored and jacekbogdanski committed Jul 9, 2019
1 parent b177b8b commit 61131b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/dom/domobject.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ CKEDITOR.dom.domObject.prototype = ( function() {
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
for ( var eventName in nativeListeners ) {
var listener = nativeListeners[ eventName ];
if ( this.$.detachEvent )
if ( this.$.detachEvent ) {
this.$.detachEvent( 'on' + eventName, listener );
else if ( this.$.removeEventListener )
} else if ( this.$.removeEventListener ) {
this.$.removeEventListener( eventName, listener, false );
}

delete nativeListeners[ eventName ];
}
Expand Down

0 comments on commit 61131b1

Please sign in to comment.