@@ -269,7 +269,7 @@ exports.plot = function(gd, data, layout, config) {
269269 Lib . error ( msg ) ;
270270 } else {
271271 Lib . log ( msg + ' Clearing graph and plotting again.' ) ;
272- Plots . cleanPlot ( [ ] , { } , gd . _fullData , fullLayout , gd . calcdata ) ;
272+ Plots . cleanPlot ( [ ] , { } , gd . _fullData , fullLayout ) ;
273273 Plots . supplyDefaults ( gd ) ;
274274 fullLayout = gd . _fullLayout ;
275275 Plots . doCalcdata ( gd ) ;
@@ -614,7 +614,7 @@ exports.newPlot = function(gd, data, layout, config) {
614614 gd = Lib . getGraphDiv ( gd ) ;
615615
616616 // remove gl contexts
617- Plots . cleanPlot ( [ ] , { } , gd . _fullData || [ ] , gd . _fullLayout || { } , gd . calcdata || [ ] ) ;
617+ Plots . cleanPlot ( [ ] , { } , gd . _fullData || [ ] , gd . _fullLayout || { } ) ;
618618
619619 Plots . purge ( gd ) ;
620620 return exports . plot ( gd , data , layout , config ) ;
@@ -3199,10 +3199,9 @@ exports.purge = function purge(gd) {
31993199
32003200 var fullLayout = gd . _fullLayout || { } ;
32013201 var fullData = gd . _fullData || [ ] ;
3202- var calcdata = gd . calcdata || [ ] ;
32033202
32043203 // remove gl contexts
3205- Plots . cleanPlot ( [ ] , { } , fullData , fullLayout , calcdata ) ;
3204+ Plots . cleanPlot ( [ ] , { } , fullData , fullLayout ) ;
32063205
32073206 // purge properties
32083207 Plots . purge ( gd ) ;
0 commit comments