r898 - trunk/ui

r898 - trunk/ui


Author: eduardolundgren
Date: Sun Nov 9 22:42:23 2008
New Revision: 898
Modified:
trunk/ui/ui.core.js
Log:
Core: Change comments for the new methods
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js    (original)
+++ trunk/ui/ui.core.js    Sun Nov 9 22:42:23 2008
@@ -107,17 +107,17 @@
    },
    
    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);
    }
};