Browse Source

Revert "Change plugin exists to be performed on internal _plugins map."

This reverts commit e1ccc33a
Maciej Gołaszewski 7 years ago
parent
commit
574ec89c6f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-core/src/plugincollection.js

+ 1 - 1
packages/ckeditor5-core/src/plugincollection.js

@@ -140,7 +140,7 @@ export default class PluginCollection {
 			}
 
 			// The plugin is already loaded or being loaded - do nothing.
-			if ( that._plugins.has( PluginConstructor ) || loading.has( PluginConstructor ) ) {
+			if ( that.get( PluginConstructor ) || loading.has( PluginConstructor ) ) {
 				return;
 			}