diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-08 11:00:47 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-08 11:00:47 +0000 |
commit | 593cb1ffeffb981961804b7b1c13adcbf92618c7 (patch) | |
tree | 1f16c28fa929d2d50bc143e373c081483beb9f27 /ui/ui.core.js | |
parent | 8eca969374348c619fe1df66098565d74e2c78f1 (diff) | |
download | jquery-ui-593cb1ffeffb981961804b7b1c13adcbf92618c7.tar.gz jquery-ui-593cb1ffeffb981961804b7b1c13adcbf92618c7.zip |
core: cancel checks for type string before it's used
draggable-test: changed cancel: true test: this should cancel on all elements, but simply do nothing, since true is a unsupported value.
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; } |