diff --git a/src/canvas/index.js b/src/canvas/index.js index 8a987afe6..be6896f2f 100644 --- a/src/canvas/index.js +++ b/src/canvas/index.js @@ -59,7 +59,7 @@ export default class CanvasModule { * @private */ getCanvasView() { - return canvasView; + return this.canvasView; } name = 'Canvas'; @@ -249,7 +249,7 @@ export default class CanvasModule { * @private */ getOffsetViewerEl(compView) { - return this._getLocalEl(canvasView.offsetEl, compView, 'getOffsetViewerEl'); + return this._getLocalEl(this.canvasView.offsetEl, compView, 'getOffsetViewerEl'); } /**