Ver código fonte

Removed obsolete condition in the link actions view.

Aleksander Nowodzinski 8 anos atrás
pai
commit
266558dd5b
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1 3
      packages/ckeditor5-link/src/ui/linkactionsview.js

+ 1 - 3
packages/ckeditor5-link/src/ui/linkactionsview.js

@@ -178,9 +178,7 @@ export default class LinkActionsView extends View {
 			tooltip: true
 			tooltip: true
 		} );
 		} );
 
 
-		if ( eventName ) {
-			button.delegate( 'execute' ).to( this, eventName );
-		}
+		button.delegate( 'execute' ).to( this, eventName );
 
 
 		return button;
 		return button;
 	}
 	}