mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 00:17:59 -05:00
Setting data.accept now works fine (Fixes #3386)
This commit is contained in:
@@ -14,6 +14,19 @@
|
||||
(function($) {
|
||||
|
||||
$.widget("ui.droppable", {
|
||||
|
||||
_setData: function(key, value) {
|
||||
|
||||
if(key == 'accept') {
|
||||
this.options.accept = value && value.constructor == Function ? value : function(d) {
|
||||
return d.is(accept);
|
||||
};
|
||||
} else {
|
||||
$.widget.prototype._setData.apply(this, arguments);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
_init: function() {
|
||||
|
||||
var o = this.options, accept = o.accept;
|
||||
|
||||
Reference in New Issue
Block a user