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 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> References: <2283142.7jlluFck8S@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn 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 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: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.