From ff4064916ed7da4c4e16e6eb307d20047575ae91 Mon Sep 17 00:00:00 2001 From: Chi Cheng Date: Thu, 30 Jul 2009 14:06:31 +0000 Subject: [PATCH] Position: Allow without "at" option passed. (Not need it when align to cursor.) --- ui/ui.position.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])