Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / webui / resources / js / cr / ui / table / table_column.js
index ac14f30..193ca86 100644 (file)
@@ -51,7 +51,8 @@ cr.define('cr.ui.table', function() {
      * @return {HTMLElement} Rendered element.
      */
     renderFunction_: function(dataItem, columnId, table) {
-      var div = table.ownerDocument.createElement('div');
+      var div = /** @type {HTMLElement} */
+          (table.ownerDocument.createElement('div'));
       div.textContent = dataItem[columnId];
       return div;
     },
@@ -59,7 +60,7 @@ cr.define('cr.ui.table', function() {
     /**
      * Renders table header. This is the default render function.
      * @param {cr.ui.Table} table The table.
-     * @return {HTMLElement} Rendered element.
+     * @return {Text} Rendered text node.
      */
     headerRenderFunction_: function(table) {
       return table.ownerDocument.createTextNode(this.name);
@@ -92,13 +93,13 @@ cr.define('cr.ui.table', function() {
 
   /**
    * The column render function.
-   * @type {Function(*, string, cr.ui.Table): HTMLElement}
+   * @type {function(*, string, cr.ui.Table): HTMLElement}
    */
   cr.defineProperty(TableColumn, 'renderFunction');
 
   /**
    * The column header render function.
-   * @type {Function(cr.ui.Table): HTMLElement}
+   * @type {function(cr.ui.Table): Text}
    */
   cr.defineProperty(TableColumn, 'headerRenderFunction');