View Single Post
Old 11-14-2005, 05:07 PM   #6
jaguar
whig
 
Join Date: Apr 2001
Posts: 5,075
ah wait a minute, yes, but you can't execute it inside the function, can you? the object code is unneeded, i could've done it with normal functions as well, just a personal preference in this scenario.

Code:
var obj = new Object();

obj.test = function() {
alert("working!");
}

obj.run(param) {
//do something interesting here
param;  //execute param, in theory.
//do something interesting here as well
param //maybe call it again.
}
__________________
Good friends, good books and a sleepy conscience: this is the ideal life.
- Twain
jaguar is offline   Reply With Quote