Browse Source

Code refactoring: Removed obsolete ToolbarView docs.

Aleksander Nowodzinski 6 years ago
parent
commit
c0bc370e96
1 changed files with 0 additions and 3 deletions
  1. 0 3
      packages/ckeditor5-ui/src/toolbar/toolbarview.js

+ 0 - 3
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -250,9 +250,6 @@ export default class ToolbarView extends View {
 	 * @param {module:ui/componentfactory~ComponentFactory} factory A factory producing toolbar items.
 	 * @param {module:ui/componentfactory~ComponentFactory} factory A factory producing toolbar items.
 	 */
 	 */
 	fillFromConfig( config, factory ) {
 	fillFromConfig( config, factory ) {
-		// The toolbar is filled in in the reverse order for the toolbar grouping to work properly.
-		// If we filled it in in the natural order, items that overflow would be grouped
-		// in a revere order.
 		config.map( name => {
 		config.map( name => {
 			if ( name == '|' ) {
 			if ( name == '|' ) {
 				this.items.add( new ToolbarSeparatorView() );
 				this.items.add( new ToolbarSeparatorView() );