Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

JScipt Constuctor

I don't understand javascipt constructors!
I want an object with nested functions which takes a param in its creation, and that param is avail within the functions, e.g.
function ImLIBObject(colorToUse) {
        this.colorToUse = colorToUse;
   function ImNestedProc(e, oRow) {
       I want colorToUse here!!, i can't seem to get it, its undefined!!!
        }     

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial