Skip to content

Commit c09fea3

Browse files
Merge pull request #4273 from plotly/PlotlyPromisePolyfill
Plotly promise polyfill
2 parents d310bd4 + 88c7954 commit c09fea3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

shelly/plotlyjs/static/plotlyjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"convex-hull": "^1.0.3",
1616
"d3": "3.3.5",
1717
"delaunay-triangulate": "^1.1.6",
18+
"es6-promise": "^3.0.2",
1819
"gl-error3d": "^1.0.0",
1920
"gl-line3d": "^1.0.1",
2021
"gl-mat4": "^1.1.2",
@@ -28,7 +29,6 @@
2829
"ndarray-fill": "^1.0.1",
2930
"ndarray-homography": "^1.0.0",
3031
"ndarray-ops": "^1.2.2",
31-
"promise": "6.1.0",
3232
"right-now": "^1.0.0",
3333
"superscript-text": "^1.0.0",
3434
"through2": "^2.0.0",

shelly/plotlyjs/static/plotlyjs/src/plotly.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require('es6-promise').polyfill();
2+
13
// order of requires should matter only for interdependencies
24
// in attributes definitions. put the common modules first
35
exports.Lib = require('./lib/lib');
@@ -58,9 +60,5 @@ exports.Snapshot = require('./snapshot/snapshot');
5860
// Queue for undo/redo
5961
exports.Queue = require('./queue');
6062

61-
// promise polyfill, embed rather than requiring dependencies
62-
require('../../../../shelly/static/js/plugins/promise-1.0.0.min.js');
63-
require('../../../../shelly/static/js/plugins/promise-done-1.0.0.js');
64-
6563
// exports d3 used in the bundle
6664
exports.d3 = require('d3');

0 commit comments

Comments
 (0)