On Jul 20, 2007, at 2:54 AM, Tobias wrote:
> $w('fleetAxelConfig fleetCustomer fleetDirectory fleetPurch fleetSales
> fleetSort1 fleetSort2 fleetSort3 fleetSort4 fleetSort5 fleetSort6
> fleetVehType').each(function(s_ID) { Event.observe(s_ID, 'change',
> contractEdited); });
I realize this is all about personal preference, but why pass a
string literal to be converted to an array? Why not just pass the
array literal?
e.x.
['fleetAxelConfig', 'fleetCustomer', 'fleetDirectory', ... ].each
( function(el) {
// ...
});
TAG
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---