mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Setting data.accept now works fine (Fixes #3386)
This commit is contained in:
parent
7ba2beb903
commit
aed298125d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user