in react_ujs/src/getConstructor/fromGlobal.js [6:22]
module.exports = function(className) {
var constructor;
// Try to access the class globally first
constructor = topLevel[className];
// If that didn't work, try eval
if (!constructor) {
constructor = eval(className);
}
// Lastly, if there is a default attribute try that
if (constructor && constructor['default']) {
constructor = constructor['default'];
}
return constructor;
}