瀏覽代碼

Docs: removed commented line of comment from inline comments.

Szymon Cofalik 9 年之前
父節點
當前提交
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).
 		// Whenever selection range changes, if the change comes directly from selection API (direct user change).
 		this.on( 'change:range', ( evt, data ) => {
 		this.on( 'change:range', ( evt, data ) => {
 			if ( data.directChange ) {
 			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 );
 				this._updateAttributes( true );
 			}
 			}
 		}, { priority: 'high' } );
 		}, { priority: 'high' } );