Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28852

Re: Overwriting existing fucntion

Path csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Overwriting existing fucntion
Date Wed, 21 Oct 2015 21:40:35 +0200
Organization PointedEars Software (PES)
Lines 20
Message-ID <37067801.r229cbFWdt@PointedEars.de> (permalink)
References <CbCdnUFUDeXC3rnLnZ2dnUU7-amdnZ2d@westnet.com.au> <2283142.7jlluFck8S@PointedEars.de> <n08j45$cfc$1@news.albasani.net>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1445456435 29701 eJwFwYEBwCAIBLGVRLynjgOo+4/QBJepYwktHq82kdnnjN0XDGKU9Zc68qlLhTP8NTVFzh8jCBD4 (21 Oct 2015 19:40:35 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Wed, 21 Oct 2015 19:40:35 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXBGyRcxDX/09YgqBxchPcEORw1GJOaebZxFKvz28vO7SL7Q8VWdGjlp1kaJQpa8rgP0lGFV8=
Cancel-Lock sha1:pp0JQCJE65qkN+tNEYiH5twASrM=
X-NNTP-Posting-Host eJwFwQkBwDAIA0BLtEAGcngW/xJ654qD+QwOczq7kWE2e4cxs8YjEiyVHwhLio73Fc+Swt4HJ6URKg==
Xref csiph.com comp.lang.javascript:28852

Show key headers only | View raw


Stefan Weiss wrote:

> On 2015-10-19 19:49, Thomas 'PointedEars' Lahn wrote:
>> Different to what Stefan suggested, you should not be using “window” to
>> refer to the global object, but if you need to make it explicit, “this”
>> in the global execution context.  For example
>> 
>>   /* global context */
>>   var global = this;
> 
> This will not give you the global object, but rather the window object
> again (actually, the window's WindowProxy object) in HTML5:

Nonsense.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Overwriting existing fucntion Andrew Poulos <ap_prog@hotmail.com> - 2015-10-19 12:12 +1100
  Re: Overwriting existing fucntion Andrew Poulos <ap_prog@hotmail.com> - 2015-10-19 13:57 +1100
  Re: Overwriting existing fucntion Stefan Weiss <krewecherl@gmail.com> - 2015-10-19 05:04 +0200
    Re: Overwriting existing fucntion Stefan Weiss <krewecherl@gmail.com> - 2015-10-19 13:14 +0200
  Re: Overwriting existing fucntion Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-19 19:49 +0200
    Re: Overwriting existing fucntion Andrew Poulos <ap_prog@hotmail.com> - 2015-10-20 10:18 +1100
      Re: Overwriting existing fucntion Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 02:17 +0200
    Re: Overwriting existing fucntion Stefan Weiss <krewecherl@gmail.com> - 2015-10-21 19:47 +0200
      Re: Overwriting existing fucntion Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-21 21:40 +0200
        Re: Overwriting existing fucntion Stefan Weiss <krewecherl@gmail.com> - 2015-10-22 03:04 +0200
  Re: Overwriting existing fucntion Danny <dann90038@gmail.com> - 2015-10-19 13:29 -0700

csiph-web