Changeset 188


Ignore:
Timestamp:
06/07/13 02:45:39 (6 years ago)
Author:
nhoyt
Message:

tree-view.js: Moved getCellValue from constructor property to prototype method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-13/chrome/content/tree-view.js

    r187 r188  
    2323var TreeView = function (table) { 
    2424  this.rowCount = table.length; 
    25   this.getCellValue = function (row, col) { return table[row][col.id]; }; 
     25  this.table = table; 
    2626}; 
    2727 
    2828TreeView.prototype.cycleHeader = function (col, elem) {}; 
     29TreeView.prototype.getCellValue = function (row, col) { return this.table[row][col.id]; }; 
    2930TreeView.prototype.getImageSrc = function (row, col) { return null; }; 
    3031TreeView.prototype.getLevel = function (row) { return 0; }; 
     
    3233TreeView.prototype.getRowProperties = function (row, props) {}; 
    3334TreeView.prototype.isContainer = function (row) { return false; }; 
    34 TreeView.prototype.isEditable = function (row, col) { return col.editable;  }; 
     35TreeView.prototype.isEditable = function (row, col) { return col.editable; }; 
    3536TreeView.prototype.isSeparator = function (row) { return false; }; 
    3637TreeView.prototype.isSorted = function () { return false; }; 
Note: See TracChangeset for help on using the changeset viewer.