Wednesday, September 26, 2007

jq_visual_effect's bug

There's a little bug in version 0.1. The jq_visual_effect helper generates the default speed with an unquoted string. For example, it should be:

$('#me').fadeTo('normal', opa, function(){});

but the buggy method generates:

$('#me').fadeTo(normal, opa, function(){});

There are 2 ways to eliminate this bug.


  1. You can pass the :speed argument with "'slow'", "'normal'" or "'fast'" (i.e. add the quote yourself).

  2. The other way is to modify the jq_visual_effect helper in lib/jq4r.rb and add quotes around ${speed}.

No comments: