Hello, say I have this function doSomething();
I have always been passing it an obj (prototype object) to return
something I want from the obj.
so it goes like this: doSomething(obj);
can I do it more like Rails, that is to say, like:
obj.doSomething()?
For instance,
function pulse(obj){
Effect.pulsate(obj, {pulses:4, duration:0.5});
}
I normall do :
obj = $('some_div');
pulse(obj);
How can I do it like:
obj.pulse()?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---