windrobin / flashcanvas

Automatically exported from code.google.com/p/flashcanvas
0 stars 0 forks source link

StrokeStyle randomy fails to apply using save()/restore() #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using a mix of save()/restore() and polygon drawing, I noticed the strokeStyle 
randomly failed to apply.

Reading the open source version of FlashCanvas.js, I noticed properties are 
written before pushing state to the stack in save() while they're not written 
after popping state from the stack in restore().

I tried to add writing properties at the end of the restore() function in the 
minified FlashCanvas Pro :
line 12, col 478, after "this.a.push("C")", added ";this.h(15)"

I'm not sure of what i've done exactly since the code is minified but it solved 
my random problem.

What do you think ?

Original issue reported on code.google.com by maxime.c...@gmail.com on 6 Mar 2014 at 9:08