Skip to content

Commit ee0a309

Browse files
committed
do not export templateFormatString
1 parent ce3c9cc commit ee0a309

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ var hovertemplateWarnings = {
999999
name: 'hovertemplate'
10001000
};
10011001
lib.hovertemplateString = function() {
1002-
return lib.templateFormatString.apply(hovertemplateWarnings, arguments);
1002+
return templateFormatString.apply(hovertemplateWarnings, arguments);
10031003
};
10041004

10051005
var texttemplateWarnings = {
@@ -1008,7 +1008,7 @@ var texttemplateWarnings = {
10081008
name: 'texttemplate'
10091009
};
10101010
lib.texttemplateString = function() {
1011-
return lib.templateFormatString.apply(texttemplateWarnings, arguments);
1011+
return templateFormatString.apply(texttemplateWarnings, arguments);
10121012
};
10131013

10141014
var TEMPLATE_STRING_FORMAT_SEPARATOR = /^:/;
@@ -1028,7 +1028,7 @@ var TEMPLATE_STRING_FORMAT_SEPARATOR = /^:/;
10281028
*
10291029
* @return {string} templated string
10301030
*/
1031-
lib.templateFormatString = function(string, labels, d3locale) {
1031+
function templateFormatString(string, labels, d3locale) {
10321032
var opts = this;
10331033
var args = arguments;
10341034
// Not all that useful, but cache nestedProperty instantiation
@@ -1078,7 +1078,7 @@ lib.templateFormatString = function(string, labels, d3locale) {
10781078
}
10791079
return value;
10801080
});
1081-
};
1081+
}
10821082

10831083
/*
10841084
* alphanumeric string sort, tailored for subplot IDs like scene2, scene10, x10y13 etc

0 commit comments

Comments
 (0)