found a bug in a bugfix

3 views
Skip to first unread message

gabs

unread,
Nov 18, 2008, 5:01:36 AM11/18/08
to Ruby on Rails: DHTML Calendar
Can't seem to reply to the thread :
http://groups.google.com/group/dhtml-calendar/browse_thread/thread/a49c04d2fc0ed54f?tvc=2&q=function

Your fix for the bug mentioned in the above thread has a tiny typo
def format_js_hash(options)
options.collect { |key,value| key.to_s + ':' + if
['flatCallback', 'disableFunc', 'onSelect',
'onClose', 'onUpdate', 'DateStatusFunc'].include?(key.to_s) then
value else value.inspect end }.join(',')
end

'DateStatusFunc' should be 'dateStatusFunc', like so:

def format_js_hash(options)
options.collect { |key,value| key.to_s + ':' + if
['flatCallback', 'disableFunc', 'onSelect',
'onClose', 'onUpdate', 'dateStatusFunc'].include?(key.to_s) then
value else value.inspect end }.join(',')
end

cheers,
Reply all
Reply to author
Forward
0 new messages