Would it be too much to suggest that the naming could be easily adjusted to:
ev, ui This makes it fairly clear that it's an event reference being passed back. In addition to using el for element reference, this clears things up a lot I think, with only one extra character. So far working with jQuery UI I've been hammering the doco way too often to simply remember which method passes back an element ref and which an event ref. This might be self-explanatory to higher level devs but surely it's simple to adopt the naming suggested above and make life easier for everyone? pd On Oct 27, 11:04 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Seehttp://docs.jquery.com/UI/Sortables/sortable#options > > "All callbacks receive two arguments: The original browser event and a > prepared ui object, view below for a documentation of this object (if you > name your second argument 'ui'): > > - *ui.options* - options used to initialize the sortable > - *ui.position* - current position of the helper > - *ui.absolutePosition* - current absolute position of the helper > - *ui.helper* - the current helper element (most often a clone of the > item) > - *ui.placeholder* - the placeholder (if you defined one) > - *ui.item* - the current dragged element > - *ui.sender* - the sortable where the item comes from (only exists if > you move from one connected list to another)" > > - Richard > > On Mon, Oct 27, 2008 at 6:10 AM, badtant <[EMAIL PROTECTED]> wrote: > > > Hi! > > > I'm currently playing with sortable lists. I have two lists that are > > connected with each other. > > When an item is dragged from one list to the other a want to > > manipulate that item but i don't know how. > > > I've fugired out that i should use the receive option. Then there are > > two arguments... e and ui. I don't quite understand what they are and > > how i can use them. I need some explenation. > > > $("#left").sortable({ > > connectWith:["#right"], > > receive:function(e,ui){ > > > } > > }); > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
