Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

TypeError: _this.getCurrentFrame(...) is undefined #112

Closed
lv7777 opened this issue Jun 11, 2016 · 2 comments
Closed

TypeError: _this.getCurrentFrame(...) is undefined #112

lv7777 opened this issue Jun 11, 2016 · 2 comments

Comments

@lv7777
Copy link

lv7777 commented Jun 11, 2016

概要

TypeError: _this.getCurrentFrame(...) is undefined on bundle.js:147:37

詳細

#109 を作るときに出ました。

framecontrollerはちゃんとinstance化できたので
mainのcanvasを持ってきた時にエラーが出るっぽいです。

やること

バグの修正。

@lv7777
Copy link
Author

lv7777 commented Jun 11, 2016

bundle.js

      updateImageDataToNextData = function updateImageDataToNextData(frameId) {
        updateCurrentFrameImageData();
        _this.currentFrameId = frameId;
        _this.canvasModel.setImageData(_this.getCurrentFrame().imageData);//147行目
      };

@lv7777
Copy link
Author

lv7777 commented Jun 11, 2016

canvasじゃなくてmain.jsのframesControllerを引数に取って解決。

@lv7777 lv7777 closed this as completed Jun 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant