Make createMesh a private function.
MODIFY
src/contourFeature.js
src/contourFeature.js
@@ -127,7 +127,7 @@ var contourFeature = function (arg) {
opacityRange = contour.get('opacityRange')(),
rangeValues = contour.get('rangeValues')(),
minValue, maxValue, val, range, i, k;
- var result = this.createMesh({
+ var result = this._createMesh({
used: function (d, i) {
return util.isNonNullFinite(valueFunc(d, i));
},

MODIFY
src/meshFeature.js
src/meshFeature.js
@@ -209,7 +209,7 @@ var meshFeature = function (arg) {
* data point is removed from the resultant mesh.
* @returns {geo.meshFeature.meshInfo} An object with the mesh information.
*/
- this.createMesh = function (vertexValueFuncs) {
+ this._createMesh = function (vertexValueFuncs) {
vertexValueFuncs = vertexValueFuncs || {};
var i, i3, j, k, idx, numPts, usedPts, usePos, item, key,
data = m_this.data(),

Make createMesh a private function.