Skip to content

Commit f298e2e

Browse files
committed
More triple equality
1 parent dc527b8 commit f298e2e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

_experimental/classobj/call_user_method.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function call_user_method(method, obj) {
99
var func;
1010
func = eval(obj+"['"+method+"']");
1111

12-
if (typeof func != 'function') {
12+
if (typeof func !== 'function') {
1313
throw new this.Exception(func + ' is not a valid method');
1414
}
1515

_experimental/classobj/call_user_method_array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function call_user_method_array(method, obj, params) {
99
var func;
1010
func = eval(obj+"['"+method+"']");
1111

12-
if (typeof func != 'function') {
12+
if (typeof func !== 'function') {
1313
throw new this.Exception(func + ' is not a valid method');
1414
}
1515

_workbench/filesystem/parse_ini_string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function parse_ini_string ( $filepath ) {
1111
for( $ini in $line ){
1212
$line = trim( $line );
1313
// Comments
14-
if ( $line == '' || $line.substr(0,1) == ';' ) { continue; }
14+
if ( $line === '' || $line.substr(0,1) == ';' ) { continue; }
1515
// Sections
1616
if ( $line.substr(0,1) == '[' ) {
1717
$sections.push($line.substr(1, -1));

_workbench/tokenizer/test3.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private function _timestamp($calc, $stamp)
318318
} else {
319319
$return = $this->_calcdetail($calc, $stamp, self::TIMESTAMP, null);
320320
}
321-
if ($calc != 'cmp') {
321+
if ($calc !== 'cmp') {
322322
return $this;
323323
}
324324
return $return;
@@ -412,7 +412,7 @@ public function toString($format = null, $type = null, $locale = null)
412412

413413
if ($format === null) {
414414
$format = Zend_Locale_Format::getDateFormat($locale) . ' ' . Zend_Locale_Format::getTimeFormat($locale);
415-
} else if (((self::$_options['format_type'] == 'php') && ($type === null)) or ($type == 'php')) {
415+
} else if (((self::$_options['format_type'] == 'php') && ($type === null)) or ($type === 'php')) {
416416
$format = Zend_Locale_Format::convertPhpToIsoFormat($format);
417417
}
418418

_workbench/tokenizer/token_get_all-old.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ function token_get_all(source) {
659659
continue;
660660
}
661661
// Variables
662-
else if (bufferType != 'doubleQuote' && ch === '$' && nextCharWord) {
662+
else if (bufferType !== 'doubleQuote' && ch === '$' && nextCharWord) {
663663
pushOnRet(tokens.T_VARIABLE, ch + nextCharWord[1]);
664664
i += nextCharWord[1].length;
665665
continue;

_workbench/tokenizer/var_export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function echo () {
244244
}
245245
if (d.appendChild) {
246246
if (d.body) {
247-
if (win.navigator.appName == 'Microsoft Internet Explorer') { // We unfortunately cannot use feature detection, since this is an IE bug with cloneNode nodes being appended
247+
if (win.navigator.appName === 'Microsoft Internet Explorer') { // We unfortunately cannot use feature detection, since this is an IE bug with cloneNode nodes being appended
248248
d.body.appendChild(stringToDOM(ieFix(arg)));
249249
}
250250
else {

functions/misc/define.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function define (name, value) {
77
// + revised by: Andrea Giammarchi (http://webreflection.blogspot.com)
88
// + reimplemented by: Brett Zamir (http://brett-zamir.me)
99
// * example 1: define('IMAGINARY_CONSTANT1', 'imaginary_value1');
10-
// * results 1: IMAGINARY_CONSTANT1 == 'imaginary_value1'
10+
// * results 1: IMAGINARY_CONSTANT1 === 'imaginary_value1'
1111
var defn, replace, script, that = this,
1212
d = this.window.document;
1313
var toString = function (name, value) {

0 commit comments

Comments
 (0)