You should never use for-in with arrays! See the archive/internet for
explanations.
T.
On 05/10/2011 12:41 PM, Mustafa Sak wrote:
> Hi List,
>
> I am confused! I am using rpc.callAsync functions, but my requests just
> get me errors at build version. After checking that issue with firebug I
> could see, that the params key has two dirrent values at build and
> source version
>
> Source (the correct way)
>
> params : [“test“]
>
> Build
>
> params : “[\“test\“]“
>
> After taking a deep look to the framework, I could see, that qooxdoo is
> using native .toJSON function at qx.util.Json. __convertObject() to
> convert object to string if an array has that function included. So I
> decided to test just a custom array and dump it, but the result differs
> between source and build version .
>
> Test
>
> var a = [];
>
> for (key in a)
>
> {
>
> console.log(key);
>
> }
>
> Result Source
>
> [nothing]
>
> Result Build
>
> $family
>
> each
>
> clean
>
> associate
>
> link
>
> contains
>
> extend
>
> getLast
>
> getRandom
>
> include
>
> combine
>
> erase
>
> empty
>
> flatten
>
> hexToRgb
>
> rgbToHex
>
> toJSON
>
> rgbToHsb
>
> hsbToRgb
>
> copy
>
> remove
>
> merge
>
> Why this is happen?
>
> In the past it works fine at all versions. Then I migrate from 1.3 to
> 1.4 and because of some theming problems I migrate back to 1.3.1
> manually. Sure I changed all migration changes back, or does this
> behavior accurse because of any forgotten migration change?
>
> I am really confused!
>
> Regards Mustafa Sak
>
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel