Skip to content

Commit 04a979c

Browse files
committed
Fixing build
1 parent 7694d3f commit 04a979c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/plotly/src/lib/plotly.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ export class PlotlyService {
9595
public plot(div: Plotly.PlotlyHTMLElement, data: Plotly.Data[], layout?: Partial<Plotly.Layout>, config?: Partial<Plotly.Config>, frames?: Partial<Plotly.Config>[]): Promise<any> {
9696
if (frames) {
9797
const obj = {data, layout, config, frames};
98-
if (typeOf(this.__getPlotly.plot === 'function')) {
98+
if (typeof(this._getPlotly().plot) === 'function') {
9999
return this._getPlotly().plot(div, obj) as Promise<any>;
100100
} else {
101101
// Adds support for Plotly 2.0.0 release candidates
102102
return this._getPlotly().newPlot(div, obj) as Promise<any>;
103103
}
104104
}
105105

106-
if (typeOf(this.__getPlotly.plot === 'function')) {
106+
if (typeof(this._getPlotly().plot) === 'function') {
107107
return this._getPlotly().plot(div, data, layout, config) as Promise<any>;
108108
} else {
109109
// Adds support for Plotly 2.0.0 release candidates

0 commit comments

Comments
 (0)