Core: Change comments for the new methods

This commit is contained in:
Eduardo Lundgren 2008-11-10 06:42:23 +00:00
parent 2ab2f3c7e1
commit 3206b611b1

View File

@ -107,17 +107,17 @@ $.ui = {
}, },
isOverHeight: function(y, bTop, bHeight) { isOverHeight: function(y, bTop, bHeight) {
//Determines when "y" coordinate intersects with b element height //Determines when y coordinate is over "b" element height
return (y > bTop) && (y < (bTop + bHeight)); return (y > bTop) && (y < (bTop + bHeight));
}, },
isOverWidth: function(x, bLeft, bWidth) { isOverWidth: function(x, bLeft, bWidth) {
//Determines when "x" coordinate intersects with b element width //Determines when x coordinate is over "b" element width
return (x > bLeft) && (x < (bLeft + bWidth)); return (x > bLeft) && (x < (bLeft + bWidth));
}, },
isOver: function(y, x, bTop, bLeft, bHeight, bWidth) { isOver: function(y, x, bTop, bLeft, bHeight, bWidth) {
//Determines when element "a" coordinates intersects with element "b" //Determines when x, y coordinates is over "b" element
return $.ui.isOverHeight(y, bTop, bHeight) && $.ui.isOverWidth(x, bLeft, bWidth); return $.ui.isOverHeight(y, bTop, bHeight) && $.ui.isOverWidth(x, bLeft, bWidth);
} }
}; };