Are you doing this within an anonymous function? If so, using the this keyword within the anonymous function doesn't refer to the class it is written in, but rather the global context.
Try removing the this keyword, but I get the idea you have another variable named anchorName declared within the function, or as a parameter. Post more of the function if it still doesn't work. 2009/1/7 dorkie dork from dorktown <[email protected]>: > Hi all, > It seems setting a class variable is not happening until after all my code > is run. > > When I do this: > > this.anchorName = anchorName; > setState(stateName); > > the class variable "anchorName" isn't set. > the setState method is called and then the method is exited. > then the debugger loops back into the same method again like it wasn't > called but this time the class level variable is set before hand? > > What is going on? > > dorkie dork from twilight zone town >

