という感じでプロトタイプクラスを作っているのですが、文字列を関数名にして関数を呼び出したいです。ウィンドウ名を見つけました。例はどこかにありますが、私の場合は機能しません。
function someObj() {
this.someMethod = function() {
alert('boo');
name = "someOtherMethod";
window[name]();
}
var someOtherMethod = function() {
alert('indirect reference');
}
}