@@ -210,7 +210,7 @@ Clazz.extendsProperties = function (hostThis, hostSuper) {
210210Clazz . checkInnerFunction = function ( hostSuper , funName ) {
211211 for ( var k = 0 ; k < Clazz . innerFunctionNames . length ; k ++ ) {
212212 if ( funName == Clazz . innerFunctionNames [ k ] &&
213- Clazz . innerFunctions [ funName ] == hostSuper [ funName ] ) {
213+ Clazz . innerFunctions [ funName ] === hostSuper [ funName ] ) {
214214 return true ;
215215 }
216216 }
@@ -285,7 +285,7 @@ Clazz.inheritClass = function (clazzThis, clazzSuper, objSuper) {
285285 // which is not referenced elsewhere.
286286 // March 13, 2006
287287 clazzThis . prototype = objSuper ;
288- } else if ( clazzSuper != Number ) {
288+ } else if ( clazzSuper !== Number ) {
289289 clazzThis . prototype = new clazzSuper ( Clazz . inheritArgs ) ;
290290 } else { // Number
291291 clazzThis . prototype = new Number ( ) ;
@@ -347,7 +347,7 @@ Clazz.extendInterface = Clazz.implementOf;
347347 # clazzAncestor -> anc
348348 #-*/
349349Clazz . equalsOrExtendsLevel = function ( clazzThis , clazzAncestor ) {
350- if ( clazzThis == clazzAncestor ) {
350+ if ( clazzThis === clazzAncestor ) {
351351 return 0 ;
352352 }
353353 if ( clazzThis . implementz != null ) {
@@ -370,7 +370,7 @@ Clazz.equalsOrExtendsLevel = function (clazzThis, clazzAncestor) {
370370 # clazzTarget -> tg
371371 #-*/
372372Clazz . getInheritedLevel = function ( clazzTarget , clazzBase ) {
373- if ( clazzTarget == clazzBase ) {
373+ if ( clazzTarget === clazzBase ) {
374374 return 0 ;
375375 }
376376 var isTgtStr = ( typeof clazzTarget == "string" ) ;
@@ -385,9 +385,9 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
385385 * March 10, 2006
386386 */
387387 if ( ( isTgtStr && "NullObject" == clazzTarget )
388- || NullObject == clazzTarget ) {
389- if ( clazzBase != Number && clazzBase != Boolean
390- && clazzBase != NullObject ) {
388+ || NullObject === clazzTarget ) {
389+ if ( clazzBase !== Number && clazzBase != = Boolean
390+ && clazzBase !== NullObject ) {
391391 return 0 ;
392392 }
393393 }
@@ -402,7 +402,7 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
402402 }
403403 var level = 0 ;
404404 var zzalc = clazzTarget ; // zzalc <--> clazz
405- while ( zzalc != clazzBase && level < 10 ) {
405+ while ( zzalc !== clazzBase && level < 10 ) {
406406 /* maybe clazzBase is interface */
407407 if ( zzalc . implementz != null ) {
408408 var impls = zzalc . implementz ;
@@ -417,7 +417,7 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
417417
418418 zzalc = zzalc . superClazz ;
419419 if ( zzalc == null ) {
420- if ( clazzBase == Object ) {
420+ if ( clazzBase === Object ) {
421421 /*
422422 * getInheritedLevel(String, CharSequence) == 1
423423 * getInheritedLevel(String, Object) == 1.5
@@ -493,7 +493,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
493493 if ( clazzFun != null ) {
494494 if ( clazzFun . claxxOwner != null ) {
495495 // claxxOwner is a mark for methods that is single.
496- if ( clazzFun . claxxOwner != clazzThis ) {
496+ if ( clazzFun . claxxOwner !== clazzThis ) {
497497 // This is a single method, call directly!
498498 fx = clazzFun ;
499499 }
@@ -509,7 +509,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
509509 * comparision
510510 */
511511 //var level = Clazz.getInheritedLevel (clazzThis, stacks[i]);
512- if ( clazzThis == stacks [ i ] ) { // level == 0
512+ if ( clazzThis === stacks [ i ] ) { // level == 0
513513 if ( i > 0 ) {
514514 i -- ;
515515 fx = stacks [ i ] . prototype [ funName ] ;
@@ -549,7 +549,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
549549 /*# {$no.debug.support} >>x #*/
550550 if ( Clazz . tracingCalling ) {
551551 var caller = arguments . callee . caller ;
552- if ( caller == Clazz . superConstructor ) {
552+ if ( caller === Clazz . superConstructor ) {
553553 caller = caller . arguments . callee . caller ;
554554 }
555555 Clazz . pu$hCalling ( new Clazz . callingStack ( caller , clazzThis ) ) ;
@@ -695,7 +695,7 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
695695 /*
696696 * Cache last matched method
697697 */
698- if ( fx . lastParams == params . typeString && fx . lastClaxxRef == claxxRef ) {
698+ if ( fx . lastParams == params . typeString && fx . lastClaxxRef === claxxRef ) {
699699 var methodParams = null ;
700700 if ( params . hasCastedNull ) {
701701 methodParams = new Array ( ) ;
@@ -736,10 +736,10 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
736736 * right claxxRef in the stacks, and the inherited level of stacks
737737 * are in order.
738738 */
739- if ( began || stacks [ i ] == claxxRef ) {
739+ if ( began || stacks [ i ] === claxxRef ) {
740740 /*
741741 * First try to search method within the same class scope
742- * with stacks[i] == claxxRef
742+ * with stacks[i] === claxxRef
743743 */
744744 var clazzFun = stacks [ i ] . prototype [ fxName ] ;
745745
@@ -752,7 +752,7 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
752752 * As there are no such methods in current class, Clazz will try
753753 * to search its super class stacks. Here variable began indicates
754754 * that super searchi is began, and there is no need checking
755- * <code>stacks[i] == claxxRef</code>
755+ * <code>stacks[i] === claxxRef</code>
756756 */
757757 began = true ;
758758 } // end of if
@@ -894,8 +894,8 @@ Clazz.tryToSearchAndExecute = function (objThis, clazzFun, params, funParams/*,
894894 Clazz . pu$hCalling ( new Clazz . callingStack ( xcaller , owner ) ) ;
895895 }
896896
897- var noInnerWrapper = caller != Clazz . instantialize
898- && caller != Clazz . superCall ;
897+ var noInnerWrapper = caller !== Clazz . instantialize
898+ && caller !== Clazz . superCall ;
899899 if ( noInnerWrapper ) {
900900 var fun = caller . arguments . callee ;
901901 var owner = fun . claxxReference ;
@@ -1120,7 +1120,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
11201120 * wrapping into deep hierarchies!
11211121 */
11221122 var f$ = clazzThis . prototype [ funName ] ;
1123- if ( f$ == null || ( f$ . claxxOwner == clazzThis
1123+ if ( f$ == null || ( f$ . claxxOwner === clazzThis
11241124 && f$ . funParams == fpName ) ) {
11251125 // property "funParams" will be used as a mark of only-one method
11261126 funBody . funParams = fpName ;
@@ -1154,7 +1154,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
11541154 */
11551155 //oldStacks[0] = oldFun.claxxOwner;
11561156 /*
1157- if (oldFun.claxxOwner != clazzThis) {
1157+ if (oldFun.claxxOwner !== clazzThis) {
11581158 if ("releaseChild" == funName) {
11591159 error (" in here ");
11601160 }
@@ -1182,7 +1182,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
11821182 /* method is defined in super class */
11831183 if ( /*f$ == null
11841184 || */ f$ . stacks == null
1185- || f$ . claxxReference != clazzThis ) {
1185+ || f$ . claxxReference !== clazzThis ) {
11861186 /*
11871187 * Generate a new delegating method for the class
11881188 */
@@ -1199,12 +1199,12 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
11991199 }
12001200 var ss = f$ . stacks ;
12011201
1202- if ( ss . length == 0 /* || ss[ss.length - 1] != clazzThis*/ ) {
1202+ if ( ss . length == 0 /* || ss[ss.length - 1] !== clazzThis*/ ) {
12031203 ss [ ss . length ] = clazzThis ;
12041204 } else {
12051205 var existed = false ;
12061206 for ( var i = ss . length - 1 ; i >= 0 ; i -- ) {
1207- if ( ss [ i ] == clazzThis ) {
1207+ if ( ss [ i ] === clazzThis ) {
12081208 existed = true ;
12091209 break ;
12101210 }
@@ -1215,7 +1215,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
12151215 }
12161216
12171217 if ( oldFun != null ) {
1218- if ( oldFun . claxxOwner == clazzThis ) {
1218+ if ( oldFun . claxxOwner === clazzThis ) {
12191219 f$ [ oldFun . funParams ] = oldFun ;
12201220 oldFun . claxxOwner = null ;
12211221 // property "funParams" will be used as a mark of only-one method
@@ -1417,7 +1417,7 @@ Clazz.instantialize = function (objThis, args) {
14171417 objThis . con$truct . apply ( objThis , [ ] ) ;
14181418 c . apply ( objThis , args ) ;
14191419 } else if ( ( c . claxxOwner != null
1420- && c . claxxOwner == objThis . getClass ( ) )
1420+ && c . claxxOwner === objThis . getClass ( ) )
14211421 || ( c . stacks != null
14221422 && c . stacks [ c . stacks . length - 1 ] == objThis . getClass ( ) ) ) {
14231423 /*
@@ -1466,7 +1466,7 @@ Clazz.innerFunctions = {
14661466 * Similar to Object#equals
14671467 */
14681468 equals : function ( aFun ) {
1469- return this == aFun ;
1469+ return this === aFun ;
14701470 } ,
14711471
14721472 /*
@@ -1579,7 +1579,7 @@ Clazz.decorateFunction = function (clazzFun, prefix, name) {
15791579 // org.eclipse.ui.IPlugin);
15801580 qName = prefix . __PKG_NAME__ + "." + name ;
15811581 prefix [ name ] = clazzFun ;
1582- if ( prefix == java . lang ) {
1582+ if ( prefix === java . lang ) {
15831583 window [ name ] = clazzFun ;
15841584 }
15851585 } else {
0 commit comments