Skip to content

Commit 92da0e3

Browse files
committed
sub ternary._ternary -> ternary._subplot
1 parent 39b8acf commit 92da0e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/plots/ternary/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports.plot = function plotTernary(gd) {
3838
for(var i = 0; i < ternaryIds.length; i++) {
3939
var ternaryId = ternaryIds[i],
4040
fullTernaryData = Plots.getSubplotData(fullData, 'ternary', ternaryId),
41-
ternary = fullLayout[ternaryId]._ternary;
41+
ternary = fullLayout[ternaryId]._subplot;
4242

4343
// If ternary is not instantiated, create one!
4444
if(ternary === undefined) {
@@ -62,7 +62,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
6262

6363
for(var i = 0; i < oldTernaryKeys.length; i++) {
6464
var oldTernaryKey = oldTernaryKeys[i];
65-
var oldTernary = oldFullLayout[oldTernaryKey]._ternary;
65+
var oldTernary = oldFullLayout[oldTernaryKey]._subplot;
6666

6767
if(!newFullLayout[oldTernaryKey] && !!oldTernary) {
6868
oldTernary.plotContainer.remove();

test/jasmine/tests/scatterternary_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ describe('scatterternary hover', function() {
285285

286286
beforeEach(function() {
287287
var cd = gd.calcdata,
288-
ternary = gd._fullLayout.ternary._ternary;
288+
ternary = gd._fullLayout.ternary._subplot;
289289

290290
pointData = {
291291
index: false,

0 commit comments

Comments
 (0)