Skip to content
Permalink
Browse files

Core: Change comments for the new methods

  • Loading branch information...
eduardolundgren committed Nov 10, 2008
1 parent 2ab2f3c commit 3206b611b128075b73e29086586a4ff372817089
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/ui.core.js
@@ -107,17 +107,17 @@ $.ui = {
},

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));
},

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));
},

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);
}
};

0 comments on commit 3206b61

Please sign in to comment.
You can’t perform that action at this time.