瀏覽代碼

Replaced Collection#get() in favor of Collection#has().

Oskar Wróbel 7 年之前
父節點
當前提交
b0dc017929
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-engine/src/model/documentselection.js

+ 1 - 1
packages/ckeditor5-engine/src/model/documentselection.js

@@ -823,7 +823,7 @@ class LiveSelection extends Selection {
 		}
 
 		for ( const marker of markers ) {
-			if ( !this.markers.get( marker.name ) ) {
+			if ( !this.markers.has( marker ) ) {
 				this.markers.add( marker );
 			}
 		}