From: Thomas 'PointedEars' Lahn on 27 Jan 2010 07:22 Eric Bednarz wrote: > Jorge <jorge(a)jorgechamorro.com> writes: >> And, what's wrong with global.window= global; ? > > I would put my bet on a runtime error in IE < 8 [...] You would win. The second line of var global = this; global.window = global; throws a ReferenceError(!) with description "Illegal assignment" in IE 6.0.2800.1106. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs, <f806at$ail$1$8300dec7(a)news.demon.co.uk>
From: Jorge on 29 Jan 2010 03:28 On Jan 27, 1:22 pm, Thomas 'PointedEars' Lahn <PointedE...(a)web.de> wrote: > (...) > var global = this; > global.window = global; > > throws a ReferenceError(!) with description "Illegal assignment" in > IE 6.0.2800.1106. What part of "not intended to be run" you don't understand ? -- Jorge.
First
|
Prev
|
Pages: 1 2 3 4 5 Prev: get or post? Next: appendChild that fails in Safari, but succeeds in FF, Camino |