HTML: don't replot the graph if not plotted before.

Prevent plotting the graph when screen is resized before the graph is
plotted for the first time.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-08-04 16:26:08 +03:00 committed by Dirk Hohndel
parent e968d91943
commit 477e37d15c

View file

@ -1205,5 +1205,6 @@ function switchDives(e)
}
window.onresize = function(event) {
plot1.replot( { resetAxes: true } );
if (plot1)
plot1.replot( { resetAxes: true } );
};