瀏覽代碼

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

Kamil Piechaczek 8 年之前
父節點
當前提交
aec94e94b0
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
 			}