Changeset 9258d9


Ignore:
Timestamp:
Mar 24, 2012, 8:33:05 PM (10 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
7c85ef
Parents:
bf34ea
Message:

sometimes columnname is not found in array (whenever)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfDataTree.js

    rbf34ea r9258d9  
    133133       
    134134        function columnSort(a, b) {
     135          try {
    135136            if (prepareForComparison(a[columnName]) >
    136137                prepareForComparison(b[columnName])) return 1 * order;
    137138            if (prepareForComparison(a[columnName]) <
    138139                prepareForComparison(b[columnName])) return -1 * order;
     140          } catch(e) {};
    139141            return 0;
    140142        }
     143       
    141144        if (!columnName)
    142145          columnName = this.treeElem.getAttribute("sortResource")
Note: See TracChangeset for help on using the changeset viewer.