add: var t_min = SPEC.config.xmin; var t_max = SPEC.config.xmax; 
context:   SPEC.exitEditing = function() {		if(!($('#CH1_SHOW').hasClass('active') || $('#CH2_SHOW').hasClass('active'))){		if(SPEC.params.orig['CH1_SHOW'].value == true)			$('#CH2_SHOW').addClass('active');		else if(SPEC.params.orig['CH2_SHOW'].value == true)			$('#CH1_SHOW').addClass('active');	}    for(var key in SPEC.params.orig) {      var field = $('#' + key);      var value = undefined;      if(key == 'SPEC_RUN'){        value = (field.is(':visible') ? 0 : 1);      }      else if(field.is('select') || field.is('input:text')) {        value = field.val();      }      else if(field.is('button')) {        value = (field.hasClass('active') ? 1 : 0);      }      else if(field.is('input:radio')) {        value = $('input[name="' + key + '"]:checked').val();      }	if (SPEC.params.orig['CH1_SHOW'].value)		$('#waterfall-holder_ch1').show();	else        $('#waterfall-holder_ch1').hide();      if(value !== undefined && value != SPEC.params.orig[key].value) {        console.log(key + ' changed from ' + SPEC.params.orig[key].value + ' to ' + ($.type(SPEC.params.orig[key].value) == 'boolean' ? !!value : value));        SPEC.params.local[key] = { value: ($.type(SPEC.params.orig[key].value) == 'boolean' ? !!value : value) };      }	if (key == 'xmin')		SPEC.config.xmin = value;	if (key == 'xmax')		SPEC.config.xmax = value;	if (key == 'freq_unit')		SPEC.config.unit = value;	console.log(SPEC.config.xmin, SPEC.config.xmax, SPEC.config.unit);    }        // Check changes in measurement list    var mi_count = 0;    $('#info-meas').empty();    $('#meas_list .meas-item').each(function(index, elem) {      var $elem = $(elem);      var item_val = $elem.data('value');            if(item_val !== null) {        SPEC.params.local['SPEC_MEAS_SEL' + (++mi_count)] = { value: item_val };        $('#info-meas').append(          '<div>' + $elem.data('operator') + '(<span class="' + $elem.data('signal').toLowerCase() + '">' + $elem.data('signal') + '</span>) <span id="SPEC_MEAS_VAL' + mi_count + '">-</span></div>'        );      }    });        // Send params then reset editing state and hide dialog    SPEC.sendParams();    SPEC.state.editing = false;    $('.dialog:visible').hide();    $('#right_menu').show();   };
meta: 746	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/746/fc483305f2d4c9b43f6d2c9e495a16569daf3727/scope.js/clean/Applications/spectrum-new/js/scope.js