Commit 2c8f890d authored by Mikaël Salson's avatar Mikaël Salson
Browse files

axis.js: Don't consider virtual clones here

We just want to know the min, max and undefined values. Virtual clones
are not pertinent here.
parent 65eefa49
......@@ -166,16 +166,17 @@ Axis.prototype = {
if (typeof max === 'function') max = max();
for (var i in this.m.clones){
var tmp;
try{
tmp = this.fct(i);
}catch(e){
tmp = undefined;
}
if ( typeof tmp != "undefined" && !isNaN(tmp)){
if ( tmp > max || typeof max == "undefined") max = tmp;
if ( tmp < min || typeof min == "undefined") min = tmp;
if (! this.m.clones[i].isVirtual()) {
var tmp;
try{
tmp = this.fct(i);
}catch(e){
tmp = undefined;
}
if ( typeof tmp != "undefined" && !isNaN(tmp)){
if ( tmp > max || typeof max == "undefined") max = tmp;
if ( tmp < min || typeof min == "undefined") min = tmp;
} else {
has_undefined = true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment