Changeset 13718

Show
Ignore:
Timestamp:
05/13/08 01:15:44 (2 months ago)
Author:
elazutkin
Message:

dojox.charting: moving the window cleanup down the chain. !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/charting/axis2d/Default.js

    r13716 r13718  
    7171                }, 
    7272                setWindow: function(scale, offset){ 
    73                         if(scale == 1 && offset == 0){ 
    74                                 delete this.scale; 
    75                                 delete this.offset; 
    76                         }else{ 
    77                                 this.scale  = scale; 
    78                                 this.offset = offset; 
    79                         } 
     73                        this.scale  = scale; 
     74                        this.offset = offset; 
    8075                        return this.clear(); 
    8176                }, 
     
    116111                                // re-calculate the scaler 
    117112                                this.scaler = lin.buildScaler(min, max, span, this.opt); 
     113                                // cleanup 
     114                                if(this.scale == 1 && this.offset == 0){ 
     115                                        delete this.scale; 
     116                                        delete this.offset; 
     117                                } 
    118118                        } 
    119119                        var minMinorStep = 0, ta = this.chart.theme.axis,