浏览代码

kernel: Fix == to ===.

Herbert Vojčík 7 年之前
父节点
当前提交
c1e277ef23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      support/kernel-language.js

+ 1 - 1
support/kernel-language.js

@@ -267,7 +267,7 @@ define(['./compatibility'], function () {
         st.addClass = function (className, superclass, iVarNames, pkgName) {
             // While subclassing nil is allowed, it might be an error, so
             // warn about it.
-            if (typeof superclass == 'undefined' || superclass && superclass.a$nil) {
+            if (typeof superclass === 'undefined' || superclass && superclass.a$nil) {
                 console.warn('Compiling ' + className + ' as a subclass of `nil`. A dependency might be missing.');
             }
             return buildBehaviorBody(pkgName, classBuilder(className, superclass, iVarNames, coreFns[className]));