Droppable: droppable('option', 'accept', selector) fails. fixes #4278

This commit is contained in:
Chi Cheng 2009-03-05 15:18:07 +00:00
parent ce0988e7b1
commit 73163f471e

View File

@ -51,7 +51,7 @@ $.widget("ui.droppable", {
if(key == 'accept') { if(key == 'accept') {
this.options.accept = value && $.isFunction(value) ? value : function(d) { this.options.accept = value && $.isFunction(value) ? value : function(d) {
return d.is(accept); return d.is(value);
}; };
} else { } else {
$.widget.prototype._setData.apply(this, arguments); $.widget.prototype._setData.apply(this, arguments);