diff options
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index d7a28c967..b20e492e4 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -198,7 +198,7 @@ $.ui.mouse = { var self = this, btnIsLeft = (e.which == 1), - elIsCancel = ($(e.target).is(this.options.cancel)); + elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false); if (!btnIsLeft || elIsCancel) { return true; } |