Subj : syncWXremix and Dial-up
To : KenDB3
From : Nightfox
Date : Thu Jan 07 2016 12:52 pm
> 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