diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-07-30 13:21:21 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-07-30 13:21:21 +0000 |
commit | 175f36076bbb742ce078ece9529a86649dc900ef (patch) | |
tree | a365798b59c2a66c9fb23334ebf2d4976710ff46 /ui/ui.position.js | |
parent | 20e13a4d772466e4cf9b455a76ea9f4d5be1c0b9 (diff) | |
download | jquery-ui-175f36076bbb742ce078ece9529a86649dc900ef.tar.gz jquery-ui-175f36076bbb742ce078ece9529a86649dc900ef.zip |
Position: Allow without "at" option passed. (Not need it when align to cursor.)
Diffstat (limited to 'ui/ui.position.js')
-rw-r--r-- | ui/ui.position.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js index 897df866f..b0c4bc871 100644 --- a/ui/ui.position.js +++ b/ui/ui.position.js @@ -51,7 +51,7 @@ $.fn.position = function(options) { // force my and at to have valid horizontal and veritcal positions
// if a value is missing or invalid, it will be converted to center
$.each(['my', 'at'], function() {
- var pos = options[this].split(' ');
+ var pos = ( options[this] || horizontalDefault ).split(' ');
pos = pos.length == 1
? horizontalPositions.test(pos[0])
? pos.concat([verticalDefault])
|