aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.droppable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js
index ab95bb334..839ac0311 100644
--- a/ui/ui.droppable.js
+++ b/ui/ui.droppable.js
@@ -18,7 +18,7 @@ $.widget("ui.droppable", {
_setData: function(key, value) {
if(key == 'accept') {
- this.options.accept = value && value.constructor == Function ? value : function(d) {
+ this.options.accept = value && $.isFunction(value) ? value : function(d) {
return d.is(accept);
};
} else {
@@ -32,7 +32,7 @@ $.widget("ui.droppable", {
var o = this.options, accept = o.accept;
this.isover = 0; this.isout = 1;
- this.options.accept = this.options.accept && this.options.accept.constructor == Function ? this.options.accept : function(d) {
+ this.options.accept = this.options.accept && $.isFunction(this.options.accept) ? this.options.accept : function(d) {
return d.is(accept);
};