new window[classNameString](); assuming it's at the glogal namespace.
On Tue, Nov 10, 2009 at 3:10 PM, Jon Hancock <[email protected]> wrote: > > I have a string which represents a name of a class defined using > mootools Class. > I can't figure out how to create an instance based on this string > name. > > The following does not work: > new (classNameString)(); > > Any ideas? > thanks, Jon >
