Explorar o código

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

Oskar Wróbel %!s(int64=7) %!d(string=hai) anos
pai
achega
b0dc017929
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 			}
 		}