Changeset 1936
- Timestamp:
- 03/09/10 11:24:10 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/fvanderbiest/geoext.ux/ux/Measure/lib/GeoExt.ux/Measure.Position.js
r1932 r1936 31 31 */ 32 32 constructor: function(config) { 33 var scope = {decimals: config.decimals || 2}; 33 var scope = { 34 decimals: (config.hasOwnProperty('decimals')) ? 35 config.decimals : 2 36 }; 34 37 35 38 Ext.applyIf(config, { sandbox/fvanderbiest/geoext.ux/ux/Measure/lib/GeoExt.ux/Measure.js
r1932 r1936 59 59 if (typeof(config.template) == "string") { 60 60 this.template = new Ext.XTemplate(config.template, { 61 decimals: config.decimals || 2, 61 decimals: (config.hasOwnProperty('decimals')) ? 62 config.decimals : 2, 62 63 compiled: true 63 64 });