rem: if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet);  log ("got ds: (", module.id, ")", ds.firstTime, ds.lastTime, ds.data.length); var avgds = null; if (baselineDataSet == null && module.average) { avgds = ds.createAverage(gAverageInterval); }  if (avgds) log ("got avgds: (", module.id, ")", avgds.firstTime, avgds.lastTime, avgds.data.length);  for each (g in [BigPerfGraph, SmallPerfGraph]) { g.addDataSet(ds); if (avgds) g.addDataSet(avgds); if (g == SmallPerfGraph || autoExpand) { g.expandTimeRange(Math.max(ds.firstTime, gCurrentLoadRange ? gCurrentLoadRange[0] : ds.firstTime), Math.min(ds.lastTime, gCurrentLoadRange ? gCurrentLoadRange[1] : ds.lastTime)); }  g.autoScale();  g.redraw(); gReadyForRedraw = true; }   updateLinkToThis();  } catch(e) { log(e); } }; 
add: getElement("bonsaibutton").disabled = false; }); 
context:             return function (testid, ds) {                try {                    ds.color = module.color;                    if (baselineDataSet)                        ds = ds.createRelativeTo(baselineDataSet);                    log ("got ds: (", module.id, ")", ds.firstTime, ds.lastTime, ds.data.length);                    var avgds = null;                    if (baselineDataSet == null &&                        module.average)                    {                        avgds = ds.createAverage(gAverageInterval);                    }                    if (avgds)                        log ("got avgds: (", module.id, ")", avgds.firstTime, avgds.lastTime, avgds.data.length);                    for each (g in [BigPerfGraph, SmallPerfGraph]) {                        g.addDataSet(ds);                        if (avgds)                            g.addDataSet(avgds);                        if (g == SmallPerfGraph || autoExpand) {                            g.expandTimeRange(Math.max(ds.firstTime, gCurrentLoadRange ? gCurrentLoadRange[0] : ds.firstTime),                                              Math.min(ds.lastTime, gCurrentLoadRange ? gCurrentLoadRange[1] : ds.lastTime));                        }                        g.autoScale();                        g.redraw();                        gReadyForRedraw = true;                    }                    //if (graphType == CONTINUOUS_GRAPH) {                        updateLinkToThis();                    //}                } catch(e) { log(e); }            };
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/9a8aace4c0cde04af6e6ee2395f4dad3ec1c4338/graph.js/buggy/webtools/new-graph/js/graph.js