Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2863979.M2cLrOPMcC@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 24 Oct 2012 02:17:22 +0100 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: 28 NNTP-Posting-Date: 24 Oct 2012 03:17:22 CEST NNTP-Posting-Host: f0afe0e5.newsspool3.arcor-online.net X-Trace: DXC=gbETDA2m9UYaAeROF2PWMQMcF=Q^Z^V3X4Fo<]lROoRQ8kFKPJjkNj3FBJ;YE<9gJZ32R\Q X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:16828 Cezary Tomczyk wrote: > W dniu 2012-10-22 15:47, Andreas Bergmaier pisze: >> Cezary Tomczyk schrieb: >>> I've just little bit improved the code: >>> http://jsfiddle.net/DbGVS/ >>> >>> Any advice or comments are appreciated. >> >> It must be a bit more complicated. Also non-native functions can contain >> the string '[native code]' - most prominently your isNativeMethod >> function: http://jsfiddle.net/DbGVS/3/ > > Yes, it's is possible. There is a risk. At this moment I don't know > better method. The better way is to cure the disease and not the symptoms: Use a better library in the first place, and tell the author(s) of the first library that and how they screwed up so that they can learn from that mistake and make it better. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16