Hi,
the onHover function doesn''t fire although it''s set:
You can reproduce it for example with drag drop test 5, just add an
alert or debug output for the onHover event:
Droppables.add(''cart'',
{hoverclass:''hoverclass123'',
onHover:function(element,dropon){alert''test''},
onDrop:function(element,dropon){...}, ...}
In dragdrop.js on line 101/102 onHover will be null:
      if(drop.onHover) // <== is null
        drop.onHover(element, drop.element,
Position.overlap(drop.overlap, drop.element));
Current workaround for me is to set the callback after adding:
     // for (...) if(...)
     Droppables.drops[i].onHover = function(element,dropon){...}
Regards,
Ernst
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---