Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <8914731.SEqChMirdb@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 12 Oct 2011 21:15:02 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: closure bindings Newsgroups: comp.lang.javascript References: <1094da0d-f929-49ec-9875-1096cb4ff481@db5g2000vbb.googlegroups.com> <6ff9c23e-a7d9-42fe-9e86-8799eddcfd93@6g2000prh.googlegroups.com> <2994749.SPkdTlGXAF@PointedEars.de> <1d5abff7-3bdd-4046-8c57-0d398f76049e@l11g2000prh.googlegroups.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 34 NNTP-Posting-Date: 12 Oct 2011 21:15:02 CEST NNTP-Posting-Host: 3136fa26.newsspool1.arcor-online.net X-Trace: DXC=cFgA?AFa[UR5TOT9_N5i Thomas 'PointedEars' Lahn wrote: >> BTW, how do you pass a *scope* to a method? > > - pass "this" from the global scope to get a reference to it `this' has nothing to do with scope. > - use the deprecated someObject.eval in old FireFox (pre 3.0). While it is an item for the ECMAScript Support Matrix indeed, that has nothing to do with passing an existing scope to *that* method as well. > - In the future, Fx plans to implement closure.environment.eval("x") > for debugging Interesting. URL? > Perhaps something involving manipulation and passing of the arguments > object... But that also has nothing to do with (passing) scope. Presumably we can see yet another result of cluelessness on part of the writers here. PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee