I am considering developing a pull request to allow the user to create
attach data to DOM elements that is accessible from only a small piece
of code, as opposed to available globally. This would permit greater
data encapsulation and an assurance that outside modifications won't
break a specific piece of code. This would be particularly useful for
jquery plugins. Of course, for compatibility, if the user doesn't
specify any privacy settings, then the global `dataUser` would be
used.
There are many possible ways to implement this, two of which I am
looking at:
allowing the user to create their own `Data` objects, and pass these in as a new,
optional parameter to `$.fn.data` and `$.fn.removeData`
methods
similar to the above, but adding a new method
to `$.fn` to create a `Data` object, and returning a key
which may then be passed into the `$.fn.data`
and `$.fn.removeData` methods, instead of the actual
`Data` object itself - you may then allow the user to
specify the key themself
Is there any way to modify jquery UI so that when you Ctrl + drag over multiple items the selection of each item is reversed (selected items are deselected and vice versa). At the minute, doing this selects all the items, regardless of whether they were selected before but I would like to imitate the functionality of Windows Explorer.
Would the code be easy to modify in order to do this?