10000 cleanup getStyle · plotly/plotly.js@a3c5f40 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3c5f40

Browse files
committed
cleanup getStyle
1 parent 0e3ac61 commit a3c5f40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
7575
var opts = fullLayout[self.id];
7676

7777
// store style id and URL or object
78-
var styleObj = self.styleObj = getStyleObj(opts.style, fullLayout);
78+
var styleObj = self.styleObj = getStyleObj(opts.style);
7979

8080

8181
var bounds = opts.bounds;
@@ -148,7 +148,7 @@ proto.updateMap = function(calcData, fullLayout, resolve, reject) {
148148
self.rejectOnError(reject);
149149

150150
var promises = [];
151-
var styleObj = getStyleObj(opts.style, fullLayout);
151+
var styleObj = getStyleObj(opts.style);
152152

153153
if(JSON.stringify(self.styleObj) !== JSON.stringify(styleObj)) {
154154
self.styleObj = styleObj;
@@ -764,7 +764,7 @@ proto.getViewEditsWithDerived = function(cont) {
764764
return obj;
765765
};
766766

767-
function getStyleObj(val, fullLayout) {
767+
function getStyleObj(val) {
768768
var styleObj = {};
769769

770770
if(Lib.isPlainObject(val)) {

0 commit comments

Comments
 (0)
0