diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-15 20:57:41 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-15 20:57:41 +0000 |
commit | aed298125decb717e4b2b7527386997bde45cc50 (patch) | |
tree | 9a9a631762856e9a786a2335848334f836706747 /ui/ui.droppable.js | |
parent | 7ba2beb903276f43e1ac322abd6e1fcc522e3b9e (diff) | |
download | jquery-ui-aed298125decb717e4b2b7527386997bde45cc50.tar.gz jquery-ui-aed298125decb717e4b2b7527386997bde45cc50.zip |
Setting data.accept now works fine (Fixes #3386)
Diffstat (limited to 'ui/ui.droppable.js')
-rw-r--r-- | ui/ui.droppable.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js index ba5c5816f..ab95bb334 100644 --- a/ui/ui.droppable.js +++ b/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; |