meltingice/CamanJS — pull request #56 by sandbochs (2012-12-01 08:40:37+00:00)
Title: Crossorigin revert

This is my first ever contribution to an existing open-source project!

I'm part of the filters.io team ( our project at devbootcamp) and we noticed that calling revert() on an image with the crossorigin tag would throw a security error in the browser. Upon looking at the source code I saw that the crossorigin tag wasn't being passed along when reverting the image. I made a few minor changes to accomodate for this, but had to add another argument when to pass the crossorigin tag to the loadCanvas and canvasLoaded functions in camaninstance.coffee. canvasLoaded isn't called anywhere else, but loadCanvas is called by domLoaded, but it should be ok. Ran the tests and they all passed. Now I can call revert on my images with the crossorigin attribute.