Skip to content

Commit d29cbae

Browse files
committed
editContainerArray => applyContainerArrayChanges
1 parent 5fb462f commit d29cbae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/plot_api/manage_arrays.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var isRemoveVal = exports.isRemoveVal = function isRemoveVal(val) {
2727
};
2828

2929
/*
30-
* editContainerArray: for managing arrays of layout components in relayout
30+
* applyContainerArrayChanges: for managing arrays of layout components in relayout
3131
* handles them all with a consistent interface.
3232
*
3333
* Here are the supported actions -> relayout calls -> edits we get here
@@ -69,7 +69,7 @@ var isRemoveVal = exports.isRemoveVal = function isRemoveVal(val) {
6969
* @returns {bool} `true` if it managed to complete drawing of the changes
7070
* `false` would mean the parent should replot.
7171
*/
72-
exports.editContainerArray = function editContainerArray(gd, np, edits, flags) {
72+
exports.applyContainerArrayChanges = function applyContainerArrayChanges(gd, np, edits, flags) {
7373
var componentType = np.astr,
7474
supplyComponentDefaults = Registry.getComponentMethod(componentType, 'supplyLayoutDefaults'),
7575
draw = Registry.getComponentMethod(componentType, 'draw'),

src/plot_api/plot_api.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ function _restyle(gd, aobj, _traces) {
15641564
helpers.swapXYData(cont);
15651565
}
15661566
else if(Plots.dataArrayContainers.indexOf(param.parts[0]) !== -1) {
1567-
// TODO: use manageArrays.editContainerArray here too
1567+
// TODO: use manageArrays.applyContainerArrayChanges here too
15681568
helpers.manageArrayContainers(param, newVal, undoit);
15691569
flags.docalc = true;
15701570
}
@@ -2017,7 +2017,7 @@ function _relayout(gd, aobj) {
20172017
flags.docalc = true;
20182018
}
20192019

2020-
// prepare the edits object we'll send to editContainerArray
2020+
// prepare the edits object we'll send to applyContainerArrayChanges
20212021
if(!arrayEdits[arrayStr]) arrayEdits[arrayStr] = {};
20222022
var objEdits = arrayEdits[arrayStr][i];
20232023
if(!objEdits) objEdits = arrayEdits[arrayStr][i] = {};
@@ -2097,7 +2097,7 @@ function _relayout(gd, aobj) {
20972097

20982098
// now we've collected component edits - execute them all together
20992099
for(arrayStr in arrayEdits) {
2100-
var finished = manageArrays.editContainerArray(gd,
2100+
var finished = manageArrays.applyContainerArrayChanges(gd,
21012101
Lib.nestedProperty(layout, arrayStr), arrayEdits[arrayStr], flags);
21022102
if(!finished) flags.doplot = true;
21032103
}

0 commit comments

Comments
 (0)