'ERROR: Could not get a function definition for '+
'xrange.min property.'
);
returnfalse;
returnfalse;
}
}
funcString=$('<div>').html(funcString).text();
if(disableAutoReturn===false){
if(funcString.search(/return/i)===-1){
funcString='return '+funcString;
}
}else{
if(funcString.search(/return/i)===-1){
logme(
'ERROR: You have specified a JavaScript '+
'function without a "return" statemnt. Your '+
'function will return "undefined" by default.'
);
}
}
allParamNames=state.getAllParameterNames();
allParamNames=state.getAllParameterNames();
allParamNames.push(config.plot.xrange.min);
allParamNames.push(funcString);
try{
try{
xrange.min=Function.apply(null,allParamNames);
xrange.min=Function.apply(null,allParamNames);
}catch(err){
}catch(err){
logme('ERROR: could not create a function from the string "'+config.plot.xrange.min+'" for xrange.min.');
logme(
'ERROR: could not create a function from the string "'+
funcString+'" for xrange.min.'
);
logme('Error message: "'+err.message+'"');
logme('Error message: "'+err.message+'"');
$('#'+gstId).html('<div style="color: red;">'+'ERROR IN XML: Could not create a function from the string "'+config.plot.xrange.min+'" for xrange.min.'+'</div>');
'ERROR: Could not get a function definition for '+
'xrange.max property.'
);
returnfalse;
}
funcString=$('<div>').html(funcString).text();
if(disableAutoReturn===false){
if(funcString.search(/return/i)===-1){
funcString='return '+funcString;
}
}else{
if(funcString.search(/return/i)===-1){
logme(
'ERROR: You have specified a JavaScript '+
'function without a "return" statemnt. Your '+
'function will return "undefined" by default.'
);
}
}
allParamNames.push(funcString);
try{
try{
xrange.max=Function.apply(null,allParamNames);
xrange.max=Function.apply(null,allParamNames);
}catch(err){
}catch(err){
logme('ERROR: could not create a function from the string "'+config.plot.xrange.max+'" for xrange.max.');
logme(
'ERROR: could not create a function from the string "'+
funcString+'" for xrange.max.'
);
logme('Error message: "'+err.message+'"');
logme('Error message: "'+err.message+'"');
$('#'+gstId).html('<div style="color: red;">'+'ERROR IN XML: Could not create a function from the string "'+config.plot.xrange.max+'" for xrange.max.'+'</div>');