new defines an new instance of an Object / class. Some things dont need "new" and some do.
It has nothing to dow tih Cross browser afaik Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "Mojito" <[email protected]> To: "Prototype & script.aculo.us" <[email protected]> Sent: Thursday, August 20, 2009 7:29 AM Subject: [Proto-Scripty] to NEW or not to NEW, that is the question > > Which is more proper? > > new Effect.Fade(......) > > or > > Effect.Fade(......) > > Both work for me. I'm just wondering which one is more cross browser > compatible or runs faster. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
