8
0
Просмотр исходного кода

Docs: removed commented line of comment from inline comments.

Szymon Cofalik 9 лет назад
Родитель
Сommit
8716301224
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      packages/ckeditor5-engine/src/model/liveselection.js

+ 1 - 3
packages/ckeditor5-engine/src/model/liveselection.js

@@ -66,9 +66,7 @@ export default class LiveSelection extends Selection {
 		// Whenever selection range changes, if the change comes directly from selection API (direct user change).
 		this.on( 'change:range', ( evt, data ) => {
 			if ( data.directChange ) {
-				// Reset attributes on selection (clear attributes and priorities).
-				//this._resetAttributes();
-				// And get attributes from surrounding nodes.
+				// Reset attributes on selection (clear attributes and priorities) and get attributes from surrounding nodes.
 				this._updateAttributes( true );
 			}
 		}, { priority: 'high' } );