|
From: John G Harris on 18 Apr 2008 16:13 On Thu, 17 Apr 2008 at 11:34:01, in comp.lang.javascript, VK wrote: >On Apr 17, 9:32 pm, Gregor Kofler <use...(a)gregorkofler.at> wrote: <snip> >> > CNN (betaversionhttp://beta.cnn.com/) uses Prototype >> >> Super slow loading - about 50% of the 630kB payload is eaten up by JS >> files... > >It takes 3sec on my 4Mb/sec downstream DSL for the initial page >display where the download itself takes 0.39sec You may want to >consider switching from Dial-Up to something more speedy ;-) A lot of sailors have to use dial-up via INMARSAT. Do you have a cheery word for them ? John -- John Harris
From: J.S.Criptoff on 18 Apr 2008 16:50 On 18 ÁÐÒ, 23:48, Lasse Reichstein Nielsen <l...(a)hotpop.com> wrote: > The problem with the "with" construct is that you cannot control which > properties exist on the object. It differs between browsers (as > above), and it can be changed by other, misbehaved, libraries that > change Object.prototype. Almost the same situation with named FunctionExpression: (function () { var watch = 0; (function f() { alert(watch); //-> native code... })(); })();
From: Lasse Reichstein Nielsen on 18 Apr 2008 17:08 "J.S.Criptoff" <J.S.Criptoff(a)googlemail.com> writes: > Almost the same situation with named FunctionExpression: > > (function () { > var watch = 0; > (function f() { > alert(watch); //-> native code... > })(); > })(); Wow! That's ... bad! It seems Firefox decided to let the activation object inherit from Object.prototype. There is nothing in the specification that requires this, and, as you show us, it can give problems. Neither Opera nor IE does this. Has it been bug-reported yet? /L -- Lasse Reichstein Nielsen - lrn(a)hotpop.com DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'
From: J.S.Criptoff on 18 Apr 2008 17:22 On 19 ÁÐÒ, 01:08, Lasse Reichstein Nielsen <l...(a)hotpop.com> wrote: > It seems Firefox decided to let the activation object inherit from > Object.prototype. There is nothing in the specification that requires > this, and, as you show us, it can give problems. No, Lasse, it is "special" object in scope chain created to keep FunctionExpression name only (ES 13), no bug here.
From: AKS on 19 Apr 2008 04:02
J.S.Criptoff wrote: > No, Lasse, it is "special" object in scope chain created to keep > FunctionExpression name only (ES 13), no bug here. "Special" object? No, it's not: F(); function F() { alert(watch); //-> native code... }; |