On 3/15/07, t.chemit <[EMAIL PROTECTED]> wrote:
>
>
> Just one thing, it is seriously plainfull to integrate your framework
> on a existing large application which uses the for ( var val in array
> ) structure.
Using that "structure" is treating arrays as hashes, which they are not.
Besides, you are not "integrating a framework in an existing application",
you are "porting your existing application to a framework". That means some
serious code cleanup and refactoring, during which you can start using
Enumerable:
array.each(function(val){ ... })
...or just replace "for ( var val in array )" with "for ( var i = 0, length
= array.length; i < length; i++ ){ val = array[i] }" using regular
expressions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---