Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12876
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | cezary.tomczyk@gmail.com |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Adding new method to existing object |
| Date | Sun, 18 Mar 2012 04:27:58 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 35 |
| Message-ID | <1976064.3688.1332070078466.JavaMail.geo-discussion-forums@ynmb12> (permalink) |
| References | <31786995.22.1331895413978.JavaMail.geo-discussion-forums@vbat19> <fe0320ca-41db-425e-8be2-dcec3878b903@v2g2000vbx.googlegroups.com> <8579633.960.1331987053327.JavaMail.geo-discussion-forums@vbux23> <aaeb1f13-3e7e-46d7-bf95-5ece850bf783@j11g2000yqj.googlegroups.com> |
| NNTP-Posting-Host | 79.175.205.52 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1332070080 11085 127.0.0.1 (18 Mar 2012 11:28:00 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Sun, 18 Mar 2012 11:28:00 +0000 (UTC) |
| In-Reply-To | <aaeb1f13-3e7e-46d7-bf95-5ece850bf783@j11g2000yqj.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=79.175.205.52; posting-account=fqiM0AoAAACu3aIqzAK2xf9RRpymvKVH |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 2693 |
| Xref | csiph.com comp.lang.javascript:12876 |
Show key headers only | View raw
W dniu niedziela, 18 marca 2012, 00:16:47 UTC+1 użytkownik David Mark napisał:
> On Mar 17, 8:24 am, cezary.tomc...@gmail.com wrote:
> > W dniu sobota, 17 marca 2012, 04:15:52 UTC+1 użytkownik Scott Sauyet napisał:
> >
> > > CT wrote:
> > [...]
> > > //~ I just attach this to the global namespace here instead
> > > //~ of using the `global` variable to reference `this`.
> >
> > As for global variable with this object I just use now:
> >
> > (function(){ return this || (1,eval)('this') })()
> >
> > based on articlehttp://perfectionkills.com/unnecessarily-comprehensive-look-into-a-ra...
>
> I'll have to look at that article, but I can't imagine why Kangax
> would recommend such a line of code (even for "strict mode" ES5
> scripts). And, on the Web, there's no reason to be writing strict ES5
> at the moment (if ever). In fact, it could be harmful as a large
> percentage of browsers in use will ignore the "strict" designation,
> creating inconsistencies across agents where there were none. Haven't
> we got enough problems without inventing new ones? :)
Good, very well said. It seems that use "this" alone will be enough.
> By the same token, HTML5 is mostly for show-offs as well. Other than
> for sites that show movies, it's mostly useless (for now).
--
Regards,
CT
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-16 03:56 -0700
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 04:50 -0700
Re: Adding new method to existing object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-16 15:31 +0100
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 11:51 -0700
Re: Adding new method to existing object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-17 00:10 +0100
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 17:25 -0700
Re: Adding new method to existing object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-17 02:04 +0100
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 18:15 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-16 10:18 -0700
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 11:56 -0700
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-16 13:01 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-17 04:58 -0700
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-17 16:04 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-18 04:24 -0700
Re: Adding new method to existing object John G Harris <john@nospam.demon.co.uk> - 2012-03-18 13:16 +0000
Re: Adding new method to existing object John G Harris <john@nospam.demon.co.uk> - 2012-03-16 17:09 +0000
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-16 10:46 -0700
Re: Adding new method to existing object Scott Sauyet <scott.sauyet@gmail.com> - 2012-03-16 13:43 -0700
Re: Adding new method to existing object Scott Sauyet <scott.sauyet@gmail.com> - 2012-03-16 20:15 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-17 05:17 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-17 05:24 -0700
Re: Adding new method to existing object David Mark <dmark.cinsoft@gmail.com> - 2012-03-17 16:16 -0700
Re: Adding new method to existing object cezary.tomczyk@gmail.com - 2012-03-18 04:27 -0700
csiph-web