Roo/lib/Dom.js
authorAlan Knowles <alan@roojs.com>
Wed, 18 Apr 2012 04:43:29 +0000 (12:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Apr 2012 04:43:29 +0000 (12:43 +0800)
Roo/lib/Dom.js

index ada0fcc..62c4e24 100644 (file)
@@ -9,11 +9,28 @@
  * <script type="text/javascript">
  */
 
+/**
+ * @class Roo.lib.Dom
+ * @static
+ * 
+ * Dom utils (from YIU afaik)
+ * 
+ **/
 Roo.lib.Dom = {
+    /**
+     * Get the view width
+     * @param {Boolean} full True will get the full document, otherwise it's the view width
+     * @return {Number} The width
+     */
+     
     getViewWidth : function(full) {
         return full ? this.getDocumentWidth() : this.getViewportWidth();
     },
-
+    /**
+     * Get the view height
+     * @param {Boolean} full True will get the full document, otherwise it's the view height
+     * @return {Number} The height
+     */
     getViewHeight : function(full) {
         return full ? this.getDocumentHeight() : this.getViewportHeight();
     },