Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeDraw: Cannot read property 'length' of undefined #3059

Closed
Rad1calDreamer opened this issue Jun 21, 2016 · 1 comment · Fixed by #3073
Closed

FreeDraw: Cannot read property 'length' of undefined #3059

Rad1calDreamer opened this issue Jun 21, 2016 · 1 comment · Fixed by #3073
Labels
Milestone

Comments

@Rad1calDreamer
Copy link

Rad1calDreamer commented Jun 21, 2016

dowload #3057 this master state.
When isDrawingMode true, sometimes have erros from handlers in console
21 06 2016 10-08

`
_handleEvent: function(e, eventType, targetObj) {
var target = typeof targetObj === undefined ? this.findTarget(e) : targetObj,
targets = this.targets,
options = { e: e, target: target, subTargets: targets };

  this.fire('mouse:' + eventType, options);
  target && target.fire('mouse' + eventType, options);
  for (var i = 0; i < targets.length; i++) {
    targets[i].fire('mouse' + eventType, options);
  }
},

`

@asturur
Copy link
Member

asturur commented Jun 21, 2016

my bad. i think that onMouseMove in drawing mode does not run a findTarget, so it can't run the subtargets check. i ll fix it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants