diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-07-31 00:15:36 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-07-31 00:15:36 +0000 |
commit | c0ba6ccda7294aa481124a51760f691ce6449c01 (patch) | |
tree | 9c144604b829626ab7dd97032768145da449febf /ui/ui.position.js | |
parent | ff4064916ed7da4c4e16e6eb307d20047575ae91 (diff) | |
download | jquery-ui-c0ba6ccda7294aa481124a51760f691ce6449c01.tar.gz jquery-ui-c0ba6ccda7294aa481124a51760f691ce6449c01.zip |
Position: Removed default options hash.
Diffstat (limited to 'ui/ui.position.js')
-rw-r--r-- | ui/ui.position.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js index 366014195..0c947570b 100644 --- a/ui/ui.position.js +++ b/ui/ui.position.js @@ -22,8 +22,6 @@ $.fn.position = function(options) { return _position.apply(this, arguments);
}
- options = $.extend({}, $.ui.position.defaults, options);
-
var target = $(options.of),
collision = (options.collision || 'flip').split(' '),
offset = options.offset ? options.offset.split(' ') : [0, 0],
@@ -51,7 +49,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] || '').split(' ');
pos = pos.length == 1
? horizontalPositions.test(pos[0])
? pos.concat([verticalDefault])
@@ -137,7 +135,7 @@ $.fn.position = function(options) { }));
});
- (options.stackfix && $.fn.stackfix && elem.stackfix());
+ (options.stackfix !== false && $.fn.stackfix && elem.stackfix());
// the by function is passed the offset values, not the position values
// we'll need the logic from the .offset() setter to be accessible for
// us to calculate the position values to make the by option more useful
@@ -146,9 +144,6 @@ $.fn.position = function(options) { };
$.ui.position = {
- defaults:{
- stackFix: true
- },
fit: {
left: function(position, data) {
var over = position.left + data.elemWidth - $(window).width() - $(window).scrollLeft();
|