There's the "simple" method (these names are from the documentation in  
the Wiki):

$('foo').morph('top:12px;')

and the "complex" method:

new Effect.Morph(foo,{style:'top:12px;',duration:0.5});

They work fine. Yet, from reading the code, I can't tell why I can't  
seem to use any parameters besides the style with the simple syntax.  
For example, this dies horribly:

$('foo').morph({style:'top:12px;',duration:0.5});

Doesn't the methodize wrapper just shift the arguments over and send  
the callee to the function constructor?

Thanks in advance,

Walter

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to