Преглед изворни кода

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 );
 			}
 		}