1. why is connectWith an array instead of a jQuery selector?
However, concerning the acceptance: Accepting DOM elements or jQuery wrapped DOM elements is one of the most common reason for questions on the mailing lists, since those queries can't auto update themselves in a context. So everytime a context exists, that shouldn't be possible.
I didn't realize that the array was an array of selectors, this seems very wrong. Why not just specify one selector string with the individual selectors comma delimited? I'd say this is a bug in the design and should be fixed for 1.6.
2. what's the use case for dropOnEmpty: false?
- Richard
On Wed, Jan 21, 2009 at 12:18 PM, Richard D. Worth <rdw...@gmail.com> wrote:
On Tue, Jan 20, 2009 at 10:29 AM, Richard D. Worth <rdw...@gmail.com> wrote:2. what's the use case for dropOnEmpty: false?
bump.
I'm not sure but people requested it a couple times :)
Changing the API at the end of a release candidate series is just as bad. In this case I would suggest:
- add the syntax change to a document which lists all changes people have to make when upgrading from 1.5 to 1.6
- still implement, but no longer document the old syntax
- if possible (I don't know if there is a framework for this) make use of the old syntax trigger a deprecation warning in the log
- remove from trunk directly after releasing 1.6 final
Reopened ticket to update docs
http://ui.jquery.com/bugs/ticket/3892
Are any further code changes needed?
- remove from trunk directly after releasing 1.6 final
+1
Are you sure? I wondered if maybe before this option existed, drop on empty was not possible. So people requested that that be a feature. But does it have to be an option? That is, is there a real need to selectively make it so that when you pick up a sortable element, you can drop it on a non-empty list, but not on an empty list.
And notice that when other items are added to that non-empty list, those dropOnEmpty: false items can then be dropped on that list. In my view, if they're connected, they're connected. If you don't want items dropped between one list and another, don't connect them.
The way it is currently, it seems to mean "I'm in a list of that can't be the first item added to an empty list. But I can be added to that same list once other items have been added" That's the use case I'm try to envision, and it's not coming to me. Am I missing something?