*/\r
(function($) {\r
\r
+$.ui = $.ui || {};\r
+\r
var horizontalPositions = /left|center|right/,\r
horizontalDefault = 'center',\r
verticalPositions = /top|center|bottom/,\r
return _position.apply(this, arguments);\r
}\r
\r
- options = $.extend({\r
- stackFix: true\r
- }, options);\r
+ options = $.extend({}, $.ui.position.defaults, options);\r
\r
var target = $(options.of),\r
collision = (options.collision || 'flip').split(' '),\r
};\r
\r
$.ui.position = {\r
+ defaults:{\r
+ stackFix: true\r
+ },\r
fit: {\r
left: function(position, data) {\r
var over = position.left + data.elemWidth - $(window).width() - $(window).scrollLeft();\r