Explorar o código

Code style: Use operator "equals" instead of "identities" for comparing the `typeof` results.

Kamil Piechaczek %!s(int64=9) %!d(string=hai) anos
pai
achega
aec94e94b0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/ckeditor5-core/src/plugincollection.js

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

@@ -92,7 +92,7 @@ export default class PluginCollection {
 		removePlugins = removePlugins.reduce( ( arr, PluginConstructorOrName ) => {
 			arr.push( PluginConstructorOrName );
 
-			if ( typeof PluginConstructorOrName === 'string' ) {
+			if ( typeof PluginConstructorOrName == 'string' ) {
 				arr.push( getPluginConstructor( PluginConstructorOrName ) );
 			} else if ( PluginConstructorOrName.pluginName ) {
 				arr.push( PluginConstructorOrName.pluginName );
@@ -167,7 +167,7 @@ export default class PluginCollection {
 		}
 
 		function getPluginConstructor( PluginConstructorOrName ) {
-			if ( typeof PluginConstructorOrName === 'function' ) {
+			if ( typeof PluginConstructorOrName == 'function' ) {
 				return PluginConstructorOrName;
 			}