src/Xmla.js
function(ordinal, object) {
        var node, ord, idx, lastIndex = this.cellCount() - 1;
        idx = ordinal > lastIndex ? lastIndex : ordinal;
        while(true) {
            node = this._cellNodes[idx];
            ord = this._getCellOrdinal(node);
            if (ord === ordinal) return this.getByIndex(idx, object);
            else
            if (ord > ordinal) idx--;
            else return null;
        }
    }
function(ordinal, object) {
        var node, ord, idx, lastIndex = this.cellCount() - 1;
        idx = ordinal > lastIndex ? lastIndex : ordinal;
        while(true) {
            node = this._cellNodes[idx];
            ord = this._getCellOrdinal(node);
            if (ord === ordinal) return this.getByIndex(idx, object);
            else
            if (ord > ordinal) idx--;
            else return null;
        }
    }
function ( ordinal , object ) { var node , ord , idx , lastIndex = this . cellCount ( ) - 1 ; idx = ordinal > lastIndex ? lastIndex : ordinal ; while ( true ) { node = this . _cellNodes [ idx ] ; ord = this . _getCellOrdinal ( node ) ; if ( ord === ordinal ) return this . getByIndex ( idx , object ) ; else if ( ord > ordinal ) idx -- ; else return null ; } }
Get a cell by its logical index.
@method getByOrdinal
@param {int} ordinal - the ordinal number of the cell to retrieve.
@param {object} object - optional. An object to copy the properties of the specified cell to. If omitted, a new object will be returned instead.
@return {object} An object that represents the cell.
Get a cell by its logical index .