On 20 Jul., 10:12, "Richard Quadling" <[EMAIL PROTECTED]>
wrote:
> Hi.
>
> [...]
>         
> 'fleetAxelConfig,fleetCustomer,fleetDirectory,fleetPurch,fleetSales,fleetSort1,fleetSort2,fleetSort3,fleetSort4,fleetSort5,fleetSort6,fleetVehType'.split(',').each(
>                 function(s_ID)
>                         {
>                         Event.observe($(s_ID), 'change', contractEdited);
>                         }
>                 );
>

I think I would prefere:

$w('fleetAxelConfig fleetCustomer fleetDirectory fleetPurch fleetSales
fleetSort1 fleetSort2 fleetSort3 fleetSort4 fleetSort5 fleetSort6
fleetVehType').each(function(s_ID) { Event.observe(s_ID, 'change',
contractEdited);  });

(you do not need to use the $() in Event.observe() since it will be
called internally anyway)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to