Changeset 2423

Show
Ignore:
Timestamp:
09/29/10 14:42:06 (3 years ago)
Author:
fredj
Message:

move 'tooltip' definition outside of the constructor. Non-functional change. r=fvanderbiest (closes #354)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extensions/geoext.ux/ux/Measure/lib/GeoExt.ux/MeasureArea.js

    r2297 r2423  
    4242     *  to display the measure. Optional. 
    4343     */ 
     44 
     45    /** api: config[tooltip] 
     46     *  ``String`` The tooltip for the button. Defaults to "Area measurement". 
     47     */ 
     48    tooltip: 'Area measurement', 
    4449      
    4550    /** private: method[constructor] 
     
    4954            handlerClass: OpenLayers.Handler.Polygon, 
    5055            iconCls: 'gx-map-measurearea', 
    51             tooltip: "Area measurement"
     56            tooltip: this.tooltip
    5257            template: '<p>{[values.measure.toFixed(this.decimals)]}&nbsp;'+ 
    5358                '{units}<sup>2</sup></p>' 
  • extensions/geoext.ux/ux/Measure/lib/GeoExt.ux/MeasureLength.js

    r2297 r2423  
    4242     *  to display the measure. Optional. 
    4343     */ 
     44 
     45    /** api: config[tooltip] 
     46     *  ``String`` The tooltip for the button. Defaults to "Length measurement". 
     47     */ 
     48    tooltip: 'Length measurement', 
    4449      
    4550    /** private: method[constructor] 
     
    4954            handlerClass: OpenLayers.Handler.Path, 
    5055            iconCls: 'gx-map-measurelength', 
    51             tooltip: "Length measurement"
     56            tooltip: this.tooltip
    5257            template: '<p>{[values.measure.toFixed(this.decimals)]}&nbsp;'+ 
    5358                '{units}</p>'