Changeset 13505

Show
Ignore:
Timestamp:
04/30/08 09:11:37 (7 months ago)
Author:
dylan
Message:

refs #6653, fix a bunch of global reference bugs in dojox.grid, \!strict

Location:
dojox/trunk/grid
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/grid/VirtualGrid.js

    r13440 r13505  
    367367                // private: sets width and position for views and update grid width if necessary 
    368368                var 
    369                         w = this.autoWidth ? 0 : this.domNode.clientWidth || (this.domNode.offsetWidth - this._getPadBorder().w); 
     369                        w = this.autoWidth ? 0 : this.domNode.clientWidth || (this.domNode.offsetWidth - this._getPadBorder().w), 
    370370                        vw = this.views.arrange(1, w); 
    371371                this.views.onEach("adaptWidth"); 
     
    455455                //              Use after calling beginUpdate to render any changes made to rows. 
    456456                this.updating = false; 
    457                 var i = this.invalidated; 
     457                var i = this.invalidated, r; 
    458458                if(i.all){ 
    459459                        this.update(); 
  • dojox/trunk/grid/_data/model.js

    r13392 r13505  
    496496                row.__dojo_data_item = item; 
    497497                dojo.forEach(this.fields.values, function(a){ 
    498                         value = this.store.getValue(item, a.name); 
     498                        var value = this.store.getValue(item, a.name); 
    499499                        row[a.name] = (value === undefined || value === null)?"":value; 
    500500                }, this); 
  • dojox/trunk/grid/_grid/builder.js

    r13409 r13505  
    322322                        return (e.cellIndex>0) && (e.cellX < this.overResizeWidth) && this.prepareResize(e, -1); 
    323323                } 
    324                 return t = e.cellNode && (e.cellX < this.overResizeWidth); 
     324                var t = e.cellNode && (e.cellX < this.overResizeWidth); 
     325                return t; 
    325326        }, 
    326327 
  • dojox/trunk/grid/_grid/lib.js

    r13409 r13505  
    2222         
    2323        getTd: function(rowOwner, rowIndex, cellIndex){ 
     24                // FIXME: what is inTable? 
    2425                return (dojox.grid.getTr(inTable, rowIndex)||0)[cellIndex]; 
    2526        }, 
  • dojox/trunk/grid/_grid/scroller.js

    r13377 r13505  
    6161                this.rowCount = inRowCount; 
    6262                // update page count, adjust document height 
    63                 oldPageCount = this.pageCount; 
     63                var oldPageCount = this.pageCount; 
    6464                this.pageCount = Math.ceil(this.rowCount / this.rowsPerPage); 
    6565                if(this.pageCount < oldPageCount){