Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30197
| From | emf <emfril@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: JSlint complains for requestFullscreen |
| Date | 2016-04-03 04:24 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ndqjvb$ca2$1@gioia.aioe.org> (permalink) |
| References | <ndndbq$1nfl$1@gioia.aioe.org> <ndotmq$bjb$1@solani.org> |
On 2016-04-02 12:58, Christoph M. Becker wrote:
> emf wrote:
>
>> in my Eye Exercises I am using this borrowed full-screen function:
>>
>> [code]
>>
>> It works fine, however JSlint complains for the last line of code:
>>
>> Expected 'new' before 'wscript'.
>> wscript.SendKeys("{F11}");
>>
>> Sincerely I do not understand what the problem is and what JSlint wants
>> me to change -- the variable has been declared and has been assigned a
>> value -- and adding new in front creates more problems and doesn't make
>> sense to me. Can someone explain what the problem is and how it can be
>> solved to JSlint's satisfaction?
>
> I assume that JSLint assumes that wscript.SendKeys is a constructor
> function, because SendKeys starts with a capital letter. Therefore
> JSLint complains.
Wow!
wscript.sendKeys("{F11}");
does not trigger an error in JSlint. Their complaint and suggestion,
however, in my case at least, was not very helpful to say the least.
Thanks,
Eustace
--
Natal Transits Calculator
http://emf.neocities.org/nt/nataltransits.html
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JSlint complains for requestFullscreen emf <emfril@gmail.com> - 2016-04-01 23:13 -0400
Re: JSlint complains for requestFullscreen "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-04-02 18:58 +0200
Re: JSlint complains for requestFullscreen emf <emfril@gmail.com> - 2016-04-03 04:24 -0400
Re: JSlint complains for requestFullscreen Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-04-02 18:54 +0100
Re: JSlint complains for requestFullscreen Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-03 12:37 +0200
Re: JSlint complains for requestFullscreen Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-04-04 10:52 +0100
csiph-web