Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2240796.8CzKSlEBxI@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 18 Oct 2011 19:33:39 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: Objects comparaison ? Newsgroups: comp.lang.javascript References: <1k93ek2.1xghqcy1upjvv5N%unbewusst.sein@fai.invalid> <1783522.fYvYJRLvp5@PointedEars.de> <1411612.7OFYzboFZ6@PointedEars.de> <2326223.jLKWLtnpvF@PointedEars.de> <2065619.34vx2sxqLb@PointedEars.de> <2995463.SPkdTlGXAF@PointedEars.de> <2314707.NYtdq5378b@PointedEars.de> <3387139.pT8TNry37f@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 27 NNTP-Posting-Date: 18 Oct 2011 19:33:40 CEST NNTP-Posting-Host: c9eedd44.newsspool1.arcor-online.net X-Trace: DXC=Mk5d6\;79_8QbA1[CgMQ00ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2:lDn3Y]T[_5DZm8W4\YJN On Tue, 18 Oct 2011 at 10:55:18, in comp.lang.javascript, Thomas > 'PointedEars' Lahn wrote: >> John G Harris wrote: >>> Thomas 'PointedEars' Lahn wrote: >>>> Object.equals = function(obj1, obj2) { >>>> if (typeof obj1 != "object" || obj1 == null >>>> || typeof obj2 != "object" || obj2 == null) >>> >>> >>> Attaching a global function (note it has two parameters) to Object is a >>> very bad idea. >> Nonsense. > > Object is a constructor. Its job is to *construct*, not to act like a > Christmas tree with shiny ornaments dangling from it. Obviously you have no clue about this programming language. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from (404-comp.)