aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/droppable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/droppable.js')
-rw-r--r--ui/widgets/droppable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/widgets/droppable.js b/ui/widgets/droppable.js
index 89bff2511..f98ff2714 100644
--- a/ui/widgets/droppable.js
+++ b/ui/widgets/droppable.js
@@ -57,7 +57,7 @@ $.widget( "ui.droppable", {
this.isover = false;
this.isout = true;
- this.accept = $.isFunction( accept ) ? accept : function( d ) {
+ this.accept = typeof accept === "function" ? accept : function( d ) {
return d.is( accept );
};
@@ -109,7 +109,7 @@ $.widget( "ui.droppable", {
_setOption: function( key, value ) {
if ( key === "accept" ) {
- this.accept = $.isFunction( value ) ? value : function( d ) {
+ this.accept = typeof value === "function" ? value : function( d ) {
return d.is( value );
};
} else if ( key === "scope" ) {