Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <3912496.2RH3WyVrdO@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 22 Aug 2012 10:46:45 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 17 NNTP-Posting-Date: 22 Aug 2012 10:46:45 CEST NNTP-Posting-Host: cacc3629.newsspool3.arcor-online.net X-Trace: DXC=FaEZlL\>kaK2:OR3:3gaE@McF=Q^Z^V3H4Fo<]lROoRA8kF`GJc`^9KP1=A_hZ9PnK X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:15492 Andrew Poulos wrote: > I have some js like this > > var myFunction = function(e, elem) { > e = e || window.event; > // do other stuff > }; Do not do that. `e' refers to a host object, and this is inefficient anyway. PointedEars -- When all you know is jQuery, every problem looks $(olvable).