diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-07-30 14:06:31 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-07-30 14:06:31 +0000 |
commit | ff4064916ed7da4c4e16e6eb307d20047575ae91 (patch) | |
tree | 9aaf98752dd0c4c59bd78c48d7df7306c31d3fc3 /ui | |
parent | 175f36076bbb742ce078ece9529a86649dc900ef (diff) | |
download | jquery-ui-ff4064916ed7da4c4e16e6eb307d20047575ae91.tar.gz jquery-ui-ff4064916ed7da4c4e16e6eb307d20047575ae91.zip |
Position: Allow without "at" option passed. (Not need it when align to cursor.)
Diffstat (limited to 'ui')
-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 b0c4bc871..366014195 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] || horizontalDefault ).split(' ');
+ var pos = ( options[this] || "" ).split(' ');
pos = pos.length == 1
? horizontalPositions.test(pos[0])
? pos.concat([verticalDefault])
|