Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30497
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: null variable issue??? |
| Date | 2016-05-20 14:10 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <87zirkub6m.fsf@bsb.me.uk> (permalink) |
| References | <d247ae48-6485-40e6-8063-ae3797422142@googlegroups.com> <1aaa235c-121b-4bdd-af96-081693f06a0d@googlegroups.com> |
helixpoint@gmail.com writes: > On Friday, May 20, 2016 at 7:45:35 AM UTC-4, helix...@gmail.com wrote: >> This is the line. Can't I use...&& to stop this from returning null >> >> return (E.Util.ieVersion() < 9 ? a.caller : a.caller.caller); >> >> I know this is wrong, but something like.... >> >> return (E.Util.ieVersion() < 9 ? &&a.caller : &&a.caller.caller); What's the && about? That looks like a syntax error. > Both are returning null. How do I return false if both are null You probably think that's clear, but it's not. To what two things does "both" refer? But I will repeat the advice you've had: test for browser versions, and using "caller" are both signs that something is amiss elsewhere. -- Ben.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
null variable issue??? helixpoint@gmail.com - 2016-05-20 04:45 -0700
Re: null variable issue??? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-20 05:21 -0700
Re: null variable issue??? helixpoint@gmail.com - 2016-05-20 05:42 -0700
Re: null variable issue??? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-20 06:05 -0700
Re: null variable issue??? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-20 14:10 +0100
Re: null variable issue??? helixpoint@gmail.com - 2016-05-20 06:29 -0700
Re: null variable issue??? JJ <jj4public@vfemail.net> - 2016-05-20 20:53 +0700
Re: null variable issue??? JJ <jj4public@vfemail.net> - 2016-05-20 20:55 +0700
Re: null variable issue??? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-05-20 21:06 +0200
arguments object in strict mode (was: null variable issue???) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-05-22 07:23 +0200
Re: null variable issue??? JJ <jj4public@vfemail.net> - 2016-05-20 20:46 +0700
csiph-web