meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Strange issue #44

Closed gionni2010 closed 12 years ago

gionni2010 commented 12 years ago

Hello, i have two similar script the first works well, the second not.

This is the first working: https://docs.google.com/open?id=0Bwv1t7C17v0ad0g3dDNMQTRKMDA

This is the second not working, it return the error: TypeError: this.c.pixelData is undefined https://docs.google.com/open?id=0Bwv1t7C17v0acFc3ek5pc1JkWnc

Any help please?

bebraw commented 12 years ago

You do realize "MODIFICA" won't work properly unless the user has pressed "carica immagine" first? In that case "immagine" will be undefined and the operation will fail. Might want to add a check for that.

Which version of Caman are you using by the way?

meltingice commented 12 years ago

Looks like this was an initialization issue that has likely been fixed in one of the latest commits. Grab the latest version in master and let me know if it's still broken.