Door Games Unlimited

Welcome, Guest.


Subject: syncWXremix and Dial-up Date: Thu Jan 07 2016 12:52:43
From: Nightfox To: KenDB3

 > I started using some mock data (since I don't have dialup to test with). I
 > think I figured this out.

 > function getQuerySuffix() {
 > var qs;
 > if (dialup === 'true')

 > ...should be...

 > function getQuerySuffix() {
 > var qs;
 > if (dialup === true)

 > This makes it through the function by grabbing the correct fallback lookup.

 > Triple Equals works... At some point I tried Double Equals instead (stil
 > works). Should I stick with Triple? I read up on the difference, but not
 > sure if one might be better than the other in this particular case.

Isn't the "=== true" redundant?  Saying "if (dialup)" should be enough, and
it's just as clear as saying "if (dialup === true)", since that has the same
meaning.

Nightfox

---
 ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com

Previous Message       Next Message
In Reply To: syncWXremix and Dial-up (KenDB3)
Replies: syncWXremix and Dial-up (KenDB3)syncWXremix and Dial-up (Deuce)syncWXremix and Dial-up (Digital Man)