Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2061545.QaVc4i2NtW@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 13 Apr 2013 11:45:24 +0200 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <87fvyv1r7q.fsf@gmail.com> <7902669.URqpOMyR7R@PointedEars.de> MIME-Version: 1.0 Lines: 27 NNTP-Posting-Date: 13 Apr 2013 11:45:25 CEST NNTP-Posting-Host: bb50a4b6.newsspool3.arcor-online.net X-Trace: DXC=2;26NiGg^_FX36K@\WTHGJMcF=Q^Z^V3H4Fo<]lROoRA8kF W dniu 2013-04-13 10:29, Thomas 'PointedEars' Lahn pisze: >> Mikael Andersson wrote: > [...] >>>> if (window.XMLHttpRequest) { >> >> Insufficient and error-prone, see isHostMethod(). > [...] > > Just our of curiosity: in which environment / scenario this will not be > properly evaluated? Where “XMLHttpRequest” is not a property of the object referred to by “window”, but of another object in the scope chain. Where the host object referred to by “window.XMLHttpRequest” does not take kindly (read: throws unrecoverable exceptions) on being subjected to a type-converting test. See previous discussions that lead to isHostMethod(). -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.