Skip to content
Permalink
Browse files

Setting data.accept now works fine (Fixes #3386)

  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Sep 15, 2008
1 parent 7ba2beb commit aed298125decb717e4b2b7527386997bde45cc50
Showing with 13 additions and 0 deletions.
  1. +13 −0 ui/ui.droppable.js
@@ -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;

0 comments on commit aed2981

Please sign in to comment.
You can’t perform that action at this time.