Skip to content

Commit 2feea90

Browse files
committed
keep sendDataToCloud in Plotly.Plots
1 parent 94fd466 commit 2feea90

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ var Plots = require('./plots/plots');
7979

8080
exports.Plots = {
8181
resize: Plots.resize,
82-
graphJson: Plots.graphJson
82+
graphJson: Plots.graphJson,
83+
sendDataToCloud: Plots.sendDataToCloud
8384
};
8485
exports.Fx = {
8586
hover: Fx.hover,

test/jasmine/tests/config_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ describe('config argument', function() {
533533
expect(gd._context.plotlyServerURL).not.toBe('https://chart-studio.plotly.com');
534534
expect(gd._context.plotlyServerURL).toBe('');
535535

536-
Plots.sendDataToCloud(gd);
536+
Plotly.Plots.sendDataToCloud(gd);
537537
expect(form).toBe(undefined);
538538
})
539539
.then(done, done.fail);
@@ -546,7 +546,7 @@ describe('config argument', function() {
546546
.then(function() {
547547
expect(gd._context.plotlyServerURL).toBe('https://chart-studio.plotly.com');
548548

549-
Plots.sendDataToCloud(gd);
549+
Plotly.Plots.sendDataToCloud(gd);
550550
expect(form.action).toBe('https://chart-studio.plotly.com/external');
551551
expect(form.method).toBe('post');
552552
})
@@ -558,7 +558,7 @@ describe('config argument', function() {
558558
.then(function() {
559559
expect(gd._context.plotlyServerURL).toBe('dummy');
560560

561-
Plots.sendDataToCloud(gd);
561+
Plotly.Plots.sendDataToCloud(gd);
562562
expect(form.action).toContain('/dummy/external');
563563
expect(form.method).toBe('post');
564564
})
@@ -572,7 +572,7 @@ describe('config argument', function() {
572572
.then(function() {
573573
expect(gd._context.plotlyServerURL).toBe('dummy');
574574

575-
Plots.sendDataToCloud(gd);
575+
Plotly.Plots.sendDataToCloud(gd);
576576
expect(form.action).toContain('/yo/external');
577577
expect(form.method).toBe('post');
578578
})

0 commit comments

Comments
 (0)