in lib/assets/javascripts/react_ujs.js [88:104]
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;
}