r2901 - positionTo: Changed middle to center (using middle will still result in the same behavior...

r2901 - positionTo: Changed middle to center (using middle will still result in the same behavior...


Author: scott.gonzalez
Date: Thu Jul 9 05:46:01 2009
New Revision: 2901
Modified:
branches/dev/positionTo/tests/unit/positionTo/positionTo_core.js
branches/dev/positionTo/ui/ui.positionTo.js
Log:
positionTo: Changed middle to center (using middle will still result in the
same behavior because unrecognized values default to center).
Modified: branches/dev/positionTo/tests/unit/positionTo/positionTo_core.js
==============================================================================
--- branches/dev/positionTo/tests/unit/positionTo/positionTo_core.js    
(original)
+++ branches/dev/positionTo/tests/unit/positionTo/positionTo_core.js    Thu
Jul 9 05:46:01 2009
@@ -60,12 +60,12 @@
        center: 3,
        right: 6,
        top: 0,
-        middle: 3,
+        center: 3,
        bottom: 6
    };
    var start = { left: 4, top: 4 };
    $.each([0, 1], function(my) {
-        $.each(["top", "middle", "bottom"], function(vindex, vertical) {
+        $.each(["top", "center", "bottom"], function(vindex, vertical) {
            $.each(["left", "center", "right"], function(hindex, horizontal) {
                definitions.push({
                    my: my ? horizontal + " " + vertical : 'left top',
Modified: branches/dev/positionTo/ui/ui.positionTo.js
==============================================================================
--- branches/dev/positionTo/ui/ui.positionTo.js    (original)
+++ branches/dev/positionTo/ui/ui.positionTo.js    Thu Jul 9 05:46:01 2009
@@ -11,8 +11,8 @@
var horizontalPositions = /left|center|right/,
    horizontalDefault = 'center',
-    verticalPositions = /top|middle|bottom/,
-    verticalDefault = 'middle';
+    verticalPositions = /top|center|bottom/,
+    verticalDefault = 'center';
$.fn.positionTo = function(options) {
    options = $.extend({
@@ -44,7 +44,7 @@
    }
    // force my and at to have valid horizontal and veritcal positions
-    // if a value is missing or invalid, it will be converted to center or
middle
+    // if a value is missing or invalid, it will be converted to center
    $.each(['my', 'at'], function() {
        var pos = options[this].split(' ');
        pos = pos.length == 1