Search and Top Navigation
#4288 closed enhancement (notabug)
Opened March 06, 2009 06:36PM UTC
Closed March 07, 2009 05:34AM UTC
Last modified October 11, 2012 09:15PM UTC
"element" and "options" removed from $ui.droppable.ui() return
Reported by: | NJBR | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.droppable | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It appears that "element" and "options" properties were removed from the returned object of $ui.droppable in version 1.6rc6 and now in 1.7.
Returning this information to methods such as "drop","over", "out" ... seems beneficial.
I propose that this and the "options" properties get added back in.
1.6rc5:
ui: function(c) {
return {
draggable: (c.currentItem || c.element),
helper: c.helper,
position: c.position,
absolutePosition: c.positionAbs,
options: this.options,
element: this.element
};
}
1.7
ui: function(c) {
return {
draggable: (c.currentItem || c.element),
helper: c.helper,
position: c.position,
absolutePosition: c.positionAbs, //deprecated
offset: c.positionAbs
};
}
use. $(this) and $(this).droppable("option","optionname").