Re: [JSMentors] Re: Nested Property Access

2011-02-20 Thread Balázs Galambosi
On Sun, Feb 20, 2011 at 1:35 PM, Baris Bikmaz wrote: > [...] And I prefer not to write the properties again after checking them so a > quite similar approach were to write a method > like that: Object.prototype.hasCustomProperty = function( sProperty ) { [...] > } It works until you start using

Re: [JSMentors] Re: IE script execution throttle

2011-02-20 Thread Nguyen, Anh
This reminds me of Nicolas' article http://www.nczonline.net/blog/2009/01/05/what-determines-that-a-script-is-long-running/ On Sun, Feb 20, 2011 at 7:03 PM, Peter van der Zee wrote: > Have the answer. Via Ma

Re: [JSMentors] Re: Nested Property Access

2011-02-20 Thread Baris Bikmaz
These are very interesting approaches: ((person2||{}).address||{}).zip || "no zip" ((person || 0).address || 0).zip || 'no zip'; But I prefer the way Peter proposed by checking the property with a function, like in other languages. It's quite more readable. And I prefer not to write the properties

[JSMentors] Re: IE script execution throttle

2011-02-20 Thread Totti
This reminds me of Nicolas' great article http://www.nczonline.net/blog/2009/01/05/what-determines-that-a-script-is-long-running/ On Feb 20, 7:03 pm, Peter van der Zee wrote: > Have the answer. Via Mathias (@mathias) > throughhttp://jsperf.com/faq#script-warningshttp://support.microsoft.com/defa

[JSMentors] Re: Global Object "window" is no longer "this"

2011-02-20 Thread RobG
On Feb 18, 11:32 pm, "Dmitry A. Soshnikov" wrote: > On 18.02.2011 6:00, nathanJsweet wrote: > > > So in the new ECMA standard the body decided that when the "this" word > > is used at the highest hierarchical level (i.e. when it would normally > > be the window object) would be undefined. > > It

[JSMentors] Re: Long Running Functions and Progress Bar

2011-02-20 Thread Julian Turner
To all Thank you to everyone who posted. I have created a blog-entry showing the results of my tests if you are interested: http://www.baconbutty.com/blog-entry.php?id=46 My conclusion so far:- 1. IE - Comes out best. showModelessDialog gives me what I want, perfectly. No other browser com

[JSMentors] Re: IE script execution throttle

2011-02-20 Thread Peter van der Zee
Have the answer. Via Mathias (@mathias) through http://jsperf.com/faq#script-warnings http://support.microsoft.com/default.aspx?scid=kb;en-us;175500 Cheers. On 20 feb, 11:06, Peter van der Zee wrote: > Anyone know how to disable it locally? Would like to run some benchmarks on > IE8, just for k