Path: csiph.com!aioe.org!.POSTED!not-for-mail From: emf Newsgroups: comp.lang.javascript Subject: Re: JSlint complains for requestFullscreen Date: Sun, 3 Apr 2016 04:24:11 -0400 Organization: Aioe.org NNTP Server Lines: 36 Message-ID: References: NNTP-Posting-Host: 3ISyn0wuzvJJ1XgLc/VXoQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:30197 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