Seriously, the base event constructor new Event([event[,win]]) talks about a context option. wtf, someone, anyone, Bueller?...Bueller? How do you set a new context for the Mootools global this internal keyword?
I am looking at you SmarterThanMe person! - Daniel On Apr 16, 3:51 pm, csuwldcat <[email protected]> wrote: > I have never used the base Event constructor much (never had much need > to). However it does say this in the docs as I searched for something > to accomplish what I need: > > Syntax: > > new Event([event[, win]]); > Arguments: > > event - (event) An HTMLEvent Object. > win - (window, optional: defaults to window) The context of the event. > > Can someone from the dev team just give me a nod and a small example > one-liner of that constructor with a different context set? > > - Daniel > > On Apr 16, 3:43 pm, csuwldcat <[email protected]> wrote: > > > If you look in the lib it uses 'this' in conjunction with many > > internal functions. For instance getDocument() uses this as the > > window reference. How do I change 'this' to reference some other > > object or element in the entirety of the library instance? > > > - Daniel
