@@ -210,7 +210,7 @@ Clazz.extendsProperties = function (hostThis, hostSuper) {
210
210
Clazz . checkInnerFunction = function ( hostSuper , funName ) {
211
211
for ( var k = 0 ; k < Clazz . innerFunctionNames . length ; k ++ ) {
212
212
if ( funName == Clazz . innerFunctionNames [ k ] &&
213
- Clazz . innerFunctions [ funName ] == hostSuper [ funName ] ) {
213
+ Clazz . innerFunctions [ funName ] === hostSuper [ funName ] ) {
214
214
return true ;
215
215
}
216
216
}
@@ -285,7 +285,7 @@ Clazz.inheritClass = function (clazzThis, clazzSuper, objSuper) {
285
285
// which is not referenced elsewhere.
286
286
// March 13, 2006
287
287
clazzThis . prototype = objSuper ;
288
- } else if ( clazzSuper != Number ) {
288
+ } else if ( clazzSuper !== Number ) {
289
289
clazzThis . prototype = new clazzSuper ( Clazz . inheritArgs ) ;
290
290
} else { // Number
291
291
clazzThis . prototype = new Number ( ) ;
@@ -347,7 +347,7 @@ Clazz.extendInterface = Clazz.implementOf;
347
347
# clazzAncestor -> anc
348
348
#-*/
349
349
Clazz . equalsOrExtendsLevel = function ( clazzThis , clazzAncestor ) {
350
- if ( clazzThis == clazzAncestor ) {
350
+ if ( clazzThis === clazzAncestor ) {
351
351
return 0 ;
352
352
}
353
353
if ( clazzThis . implementz != null ) {
@@ -370,7 +370,7 @@ Clazz.equalsOrExtendsLevel = function (clazzThis, clazzAncestor) {
370
370
# clazzTarget -> tg
371
371
#-*/
372
372
Clazz . getInheritedLevel = function ( clazzTarget , clazzBase ) {
373
- if ( clazzTarget == clazzBase ) {
373
+ if ( clazzTarget === clazzBase ) {
374
374
return 0 ;
375
375
}
376
376
var isTgtStr = ( typeof clazzTarget == "string" ) ;
@@ -385,9 +385,9 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
385
385
* March 10, 2006
386
386
*/
387
387
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 ) {
391
391
return 0 ;
392
392
}
393
393
}
@@ -402,7 +402,7 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
402
402
}
403
403
var level = 0 ;
404
404
var zzalc = clazzTarget ; // zzalc <--> clazz
405
- while ( zzalc != clazzBase && level < 10 ) {
405
+ while ( zzalc !== clazzBase && level < 10 ) {
406
406
/* maybe clazzBase is interface */
407
407
if ( zzalc . implementz != null ) {
408
408
var impls = zzalc . implementz ;
@@ -417,7 +417,7 @@ Clazz.getInheritedLevel = function (clazzTarget, clazzBase) {
417
417
418
418
zzalc = zzalc . superClazz ;
419
419
if ( zzalc == null ) {
420
- if ( clazzBase == Object ) {
420
+ if ( clazzBase === Object ) {
421
421
/*
422
422
* getInheritedLevel(String, CharSequence) == 1
423
423
* getInheritedLevel(String, Object) == 1.5
@@ -493,7 +493,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
493
493
if ( clazzFun != null ) {
494
494
if ( clazzFun . claxxOwner != null ) {
495
495
// claxxOwner is a mark for methods that is single.
496
- if ( clazzFun . claxxOwner != clazzThis ) {
496
+ if ( clazzFun . claxxOwner !== clazzThis ) {
497
497
// This is a single method, call directly!
498
498
fx = clazzFun ;
499
499
}
@@ -509,7 +509,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
509
509
* comparision
510
510
*/
511
511
//var level = Clazz.getInheritedLevel (clazzThis, stacks[i]);
512
- if ( clazzThis == stacks [ i ] ) { // level == 0
512
+ if ( clazzThis === stacks [ i ] ) { // level == 0
513
513
if ( i > 0 ) {
514
514
i -- ;
515
515
fx = stacks [ i ] . prototype [ funName ] ;
@@ -549,7 +549,7 @@ Clazz.superCall = function (objThis, clazzThis, funName, funParams) {
549
549
/*# {$no.debug.support} >>x #*/
550
550
if ( Clazz . tracingCalling ) {
551
551
var caller = arguments . callee . caller ;
552
- if ( caller == Clazz . superConstructor ) {
552
+ if ( caller === Clazz . superConstructor ) {
553
553
caller = caller . arguments . callee . caller ;
554
554
}
555
555
Clazz . pu$hCalling ( new Clazz . callingStack ( caller , clazzThis ) ) ;
@@ -695,7 +695,7 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
695
695
/*
696
696
* Cache last matched method
697
697
*/
698
- if ( fx . lastParams == params . typeString && fx . lastClaxxRef == claxxRef ) {
698
+ if ( fx . lastParams == params . typeString && fx . lastClaxxRef === claxxRef ) {
699
699
var methodParams = null ;
700
700
if ( params . hasCastedNull ) {
701
701
methodParams = new Array ( ) ;
@@ -736,10 +736,10 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
736
736
* right claxxRef in the stacks, and the inherited level of stacks
737
737
* are in order.
738
738
*/
739
- if ( began || stacks [ i ] == claxxRef ) {
739
+ if ( began || stacks [ i ] === claxxRef ) {
740
740
/*
741
741
* First try to search method within the same class scope
742
- * with stacks[i] == claxxRef
742
+ * with stacks[i] === claxxRef
743
743
*/
744
744
var clazzFun = stacks [ i ] . prototype [ fxName ] ;
745
745
@@ -752,7 +752,7 @@ Clazz.searchAndExecuteMethod = function (objThis, claxxRef, fxName, funParams) {
752
752
* As there are no such methods in current class, Clazz will try
753
753
* to search its super class stacks. Here variable began indicates
754
754
* that super searchi is began, and there is no need checking
755
- * <code>stacks[i] == claxxRef</code>
755
+ * <code>stacks[i] === claxxRef</code>
756
756
*/
757
757
began = true ;
758
758
} // end of if
@@ -894,8 +894,8 @@ Clazz.tryToSearchAndExecute = function (objThis, clazzFun, params, funParams/*,
894
894
Clazz . pu$hCalling ( new Clazz . callingStack ( xcaller , owner ) ) ;
895
895
}
896
896
897
- var noInnerWrapper = caller != Clazz . instantialize
898
- && caller != Clazz . superCall ;
897
+ var noInnerWrapper = caller !== Clazz . instantialize
898
+ && caller !== Clazz . superCall ;
899
899
if ( noInnerWrapper ) {
900
900
var fun = caller . arguments . callee ;
901
901
var owner = fun . claxxReference ;
@@ -1120,7 +1120,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
1120
1120
* wrapping into deep hierarchies!
1121
1121
*/
1122
1122
var f$ = clazzThis . prototype [ funName ] ;
1123
- if ( f$ == null || ( f$ . claxxOwner == clazzThis
1123
+ if ( f$ == null || ( f$ . claxxOwner === clazzThis
1124
1124
&& f$ . funParams == fpName ) ) {
1125
1125
// property "funParams" will be used as a mark of only-one method
1126
1126
funBody . funParams = fpName ;
@@ -1154,7 +1154,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
1154
1154
*/
1155
1155
//oldStacks[0] = oldFun.claxxOwner;
1156
1156
/*
1157
- if (oldFun.claxxOwner != clazzThis) {
1157
+ if (oldFun.claxxOwner !== clazzThis) {
1158
1158
if ("releaseChild" == funName) {
1159
1159
error (" in here ");
1160
1160
}
@@ -1182,7 +1182,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
1182
1182
/* method is defined in super class */
1183
1183
if ( /*f$ == null
1184
1184
|| */ f$ . stacks == null
1185
- || f$ . claxxReference != clazzThis ) {
1185
+ || f$ . claxxReference !== clazzThis ) {
1186
1186
/*
1187
1187
* Generate a new delegating method for the class
1188
1188
*/
@@ -1199,12 +1199,12 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
1199
1199
}
1200
1200
var ss = f$ . stacks ;
1201
1201
1202
- if ( ss . length == 0 /* || ss[ss.length - 1] != clazzThis*/ ) {
1202
+ if ( ss . length == 0 /* || ss[ss.length - 1] !== clazzThis*/ ) {
1203
1203
ss [ ss . length ] = clazzThis ;
1204
1204
} else {
1205
1205
var existed = false ;
1206
1206
for ( var i = ss . length - 1 ; i >= 0 ; i -- ) {
1207
- if ( ss [ i ] == clazzThis ) {
1207
+ if ( ss [ i ] === clazzThis ) {
1208
1208
existed = true ;
1209
1209
break ;
1210
1210
}
@@ -1215,7 +1215,7 @@ Clazz.defineMethod = function (clazzThis, funName, funBody, funParams) {
1215
1215
}
1216
1216
1217
1217
if ( oldFun != null ) {
1218
- if ( oldFun . claxxOwner == clazzThis ) {
1218
+ if ( oldFun . claxxOwner === clazzThis ) {
1219
1219
f$ [ oldFun . funParams ] = oldFun ;
1220
1220
oldFun . claxxOwner = null ;
1221
1221
// property "funParams" will be used as a mark of only-one method
@@ -1417,7 +1417,7 @@ Clazz.instantialize = function (objThis, args) {
1417
1417
objThis . con$truct . apply ( objThis , [ ] ) ;
1418
1418
c . apply ( objThis , args ) ;
1419
1419
} else if ( ( c . claxxOwner != null
1420
- && c . claxxOwner == objThis . getClass ( ) )
1420
+ && c . claxxOwner === objThis . getClass ( ) )
1421
1421
|| ( c . stacks != null
1422
1422
&& c . stacks [ c . stacks . length - 1 ] == objThis . getClass ( ) ) ) {
1423
1423
/*
@@ -1466,7 +1466,7 @@ Clazz.innerFunctions = {
1466
1466
* Similar to Object#equals
1467
1467
*/
1468
1468
equals : function ( aFun ) {
1469
- return this == aFun ;
1469
+ return this === aFun ;
1470
1470
} ,
1471
1471
1472
1472
/*
@@ -1579,7 +1579,7 @@ Clazz.decorateFunction = function (clazzFun, prefix, name) {
1579
1579
// org.eclipse.ui.IPlugin);
1580
1580
qName = prefix . __PKG_NAME__ + "." + name ;
1581
1581
prefix [ name ] = clazzFun ;
1582
- if ( prefix == java . lang ) {
1582
+ if ( prefix === java . lang ) {
1583
1583
window [ name ] = clazzFun ;
1584
1584
}
1585
1585
} else {
0 commit comments