Hi Leander,
Leander Hanwald schrieb:
> Hi,
>
> Is there a way to stop qooxdoo in doing such "help"?
Yes you can, but I do not know if any of the methods defined in
"qx.lang.Core" are used within the framework. I tend to say that these
methods are only available for the application developer and they are
not used within the framework, but I'm totally sure about this.
Again: doing so might break the framework.
A possible solution is to exclude this class from being compiled into
your qooxdoo script file. Just add the following make file variables
ADDITIONAL_APPLICATION_SOURCE_OPTIONS = --exclude-without-dependencies
qx.lang.Core
ADDITIONAL_APPLICATION_BUILD_OPTIONS = --exclude-without-dependencies
qx.lang.Core
and execute "make source" / "make build".
If you have more than one exclude separate the list with a comma.
cheers,
Alex
>
> For myself I never "run" into that problem because I ignored the IE 6 in
> the past, but I'm now working on a project which I wanted to "port" to
> IE 6 in some days, and now when I hear this it doesn't sound good for
> me, my code has hunderts of for (x in y) lines, and I won't change them
> I in didn't must do :)
>
> And I try to avoud code like for (i = 0 ; i < ; i++), it is simply not a
> "good looking" solution for such a code. I also prever it because I used
> objects as array replacement often in my code, and with for (x in y) i
> can handle booth types in the same codestyle.
>
> Greetings,
> Leander
>
> Ferenczi Viktor schrieb:
>> This is due to the JavaScript 1.6 compatibility methods added by qooxdoo to
>> the internal Array class. They are not added under FF, since it already
>> contains them. The newly added methods are iterated as object properties,
>> since there is no way to mark them non-iterable. The build in properties are
>> marked so, so they are not iterated. This is why tweaking the internal
>> objects is dangerous and should be avoided whenever possible. I suggest you
>> to change the loop. Instead on iterating on object properties with a for-in
>> loop itarate the array by it's integer indices.
>>
>> The dangerous (wrong) solution to iterate an array:
>>
>> for(var i in a) {...}
>>
>> The good solution for array iteration:
>>
>> for(var i=0; i<a.length; i++) {...}
>>
>> The later loop will not iterate the methods added by qooxdoo.
>>
>> Regards, Viktor
>>
>> péntek 24 augusztus 2007 dátummal westor ezt írta:
>>
>>> Hi list,
>>>
>>> please try this:
>>> var a = new Array();
>>> this.debug(a);
>>>
>>> In FF you will have an empty array, like expected.
>>>
>>> In IE6 you have an not empty Object with Code like this:
>>>
>>> --- Object: ---
>>> every=function(callback, obj)
>>> {
>>> ....
>>> }
>>> filter=function(callback, obj)
>>> {
>>> ....
>>> }
>>>
>>> This breaked my code (0.7.1) while I was iterating the Array() object and
>>> it was hard to detect why.
>>> I think it's a bug?
>>>
>>> Cheers
>>> Torsten
>>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel