KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Error when clicking on stage

Open lfmunoz4 opened this issue 13 years ago • 1 comments

When I click on the stage I get the following error:

this.clickStartShape is undefined

if(Kinetic.listenClickTap && shape._id === this.clickStartShape._id) {

kinetic-v4.7.2.js Line 7381

When I add a shape and click a shape then click on the stage the error no longer happens. Creating a fiddle would be very difficult as I have to extract code. Maybe a simple check that clickStartShape is defined fixes the error?

lfmunoz4 avatar Oct 07 '13 15:10 lfmunoz4

Here, I created a JS fiddle for you and everything seems to be working correctly:

http://jsfiddle.net/6KSbv/

I suspect that there's something weird going on with your code to cause the error. Try and see if you can update the jsfiddle to replicate your issue. If you can, please reopen this.

ericdrowell avatar Oct 07 '13 17:10 ericdrowell