Would it work if you did something like this:
var myObject = window[classNameString];
..?
More Related Contents:
- Advantages of using prototype, vs defining methods straight in the constructor? [duplicate]
- How to get a JavaScript object’s class?
- Constructors in JavaScript objects
- The value of “this” within the handler using addEventListener
- What is “undefined x 1” in JavaScript?
- Anonymous class instance —- is it a bad idea?
- Class vs. static method in JavaScript
- Clone Object without reference javascript [duplicate]
- Adding custom properties to a function
- Get functions (methods) of a class [duplicate]
- Difference of the value, prototype and property
- What does it mean that Javascript is a prototype based language?
- Access parent’s parent from javascript object
- Properties of Javascript function objects
- Is JavaScript object-oriented?
- setTimeout() inside JavaScript Class using “this”
- How to call a parent method from child class in javascript?
- How to dynamically set a function/object name in Javascript as it is displayed in Chrome
- Why are my JavaScript object properties being overwritten by other instances?
- Object oriented javascript with prototypes vs closures
- Javascript OOP best practices? [closed]
- Objects don’t inherit prototyped functions
- What does `new` in JavaScript do, anyway? [duplicate]
- ES6 – Call static method within a class
- Preserve ‘this’ reference in javascript prototype event handler [duplicate]
- JavaScript override methods
- Does ECMAScript 6 have a convention for abstract classes? [duplicate]
- Why is it impossible to change constructor function from prototype?
- Duck Typing in Javascript
- Why aren’t methods of an object created with class bound to it in ES6?