Skip to content

Commit 80b6be1

Browse files
committed
Update example to implement private render method
1 parent c44d9c0 commit 80b6be1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/plot/sparklines/unicode/base/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var str = sparkline.toString();
156156

157157
## Examples
158158

159-
<!-- eslint-disable no-restricted-syntax -->
159+
<!-- eslint-disable no-restricted-syntax, no-underscore-dangle -->
160160

161161
<!-- eslint no-undef: "error" -->
162162

@@ -179,7 +179,7 @@ function Chart( opts ) {
179179
inherit( Chart, Sparkline );
180180

181181
// Implement a custom render method:
182-
Chart.prototype.render = function render() {
182+
Chart.prototype._render = function render() {
183183
var str;
184184
var i;
185185

lib/node_modules/@stdlib/plot/sparklines/unicode/base/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable no-restricted-syntax */
19+
/* eslint-disable no-restricted-syntax, no-underscore-dangle */
2020

2121
'use strict';
2222

@@ -38,7 +38,7 @@ function Chart( opts ) {
3838
inherit( Chart, Sparkline );
3939

4040
// Implement a custom render method:
41-
Chart.prototype.render = function render() {
41+
Chart.prototype._render = function render() {
4242
var str;
4343
var i;
4444

0 commit comments

Comments
 (0)