Ver código fonte

Removed yet another unnecessary callback wrapping.

fredck 11 anos atrás
pai
commit
c2413f059b
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1 3
      src/plugin.js

+ 1 - 3
src/plugin.js

@@ -27,9 +27,7 @@ define( 'plugin', [ 'plugin-core' ], function( CorePlugin ) {
 
 		path = '../../ckeditor5-plugin-' + path.join( '/' );
 
-		require( [ path ], function( value ) {
-			onload( value );
-		} );
+		require( [ path ], onload );
 	};
 
 	return CorePlugin;