Skip Menu |

This queue is for tickets about the HTML-Prototype CPAN distribution.

Report information
The Basics
Id: 19403
Status: resolved
Worked: 1 min
Priority: 0/
Queue: HTML-Prototype

People
Owner: perl [...] intertivityNOSP4M.com
Requestors: sam [...] imageworks.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.43
Fixed in: (no value)



Subject: visual_effect function includes extra ";"
The visual_effect function returns an extra ";", which makes the resulting javascript break. The diff to fix it is: 996c996 < return "new Effect.$name( '$element_id', $options );"; --- Show quoted text
> return "new Effect.$name( '$element_id', $options )";
Sam.
Subject: proto.pl
require HTML::Prototype; my $prototype = new HTML::Prototype; print $prototype->link_to_remote( 'Reload', { update => "posts", url => 'http://foo.bar/baz', complete => $prototype->visual_effect( 'highlight', 'posts', { duration => '0.5' } ) } ); print $prototype->sortable_element( 'Reload', { url => 'http://foo.bar/baz', complete => $prototype->visual_effect( 'highlight', 'posts', { duration => '0.5' } ) } );
thank you. will be fixed in next version. probably by tonite. On Mo. 22. Mai 2006, 02:04:53, guest wrote: Show quoted text
> The visual_effect function returns an extra ";", which makes the > resulting javascript break. > > The diff to fix it is: > 996c996 > < return "new Effect.$name( '$element_id', $options );"; > ---
> > return "new Effect.$name( '$element_id', $options )";
> > Sam.