I guess it's really a newbie error, but I can't get it running. I have an "calculator" object t, which contains a lot of function to calculate values. I need to use these functions from my "calculator" object to get some values in another function. I striped it down to the following, but I get an TypeError exceptio when I call the t.hello() method. Any ideas?
var t = new T();
two();
function T() {
function hello() {
alert("hello");
}
}
function two() {
t.hello();
}
helloin your example is not a method, it is a local function defined inside other function