PDA

View Full Version : [UNKNOWN][3.??] Object reference on Ext.iterate is undefined



Keith Chadwick
6 Jan 2010, 9:01 AM
Give the following simple example




var test={a:1,b:1}

Ext.iterate(test,function(key,value,o){


o[key]=2




},this)



Should not o be a pointer to test? This always throws an error in o=undefined yet according to the documentation the iterate method passes a key,value and the object being iterated which in this case is test?


Cheers
Keith Chadwick

Condor
7 Jan 2010, 12:06 AM
I tested with Ext 3.1.0, but I correctly get the object as third parameter.

Which Ext version did you use?

Keith Chadwick
7 Jan 2010, 6:38 AM
I checked my present version and it is 3.0. I will download latest and check again.

Thanks
Keith

Keith Chadwick
7 Jan 2010, 6:52 AM
I have confirmed that this issue is not present in Ext 3.1.

Thanks
Keith Chadwick