pwambach / angular-canvas-painter

Angular.js directive to paint on a canvas on desktop or touch devices
MIT License
116 stars 35 forks source link

Minified js adds four canvases #16

Closed Brakebein closed 9 years ago

Brakebein commented 9 years ago

Just a small bug in angular-canvas-painter.min.js: where you define the templateCache for pwCanvasPaint div, those canvas are also defined causing 4 canvases in the end. So <div class="pwCanvasPaint" style="position:relative"><canvas id="pwCanvasMain"></canvas><canvas id="pwCanvasTmp" style="position:absolute;top:0;left:0"></canvas></div> should change to <div class="pwCanvasPaint" style="position:relative"></div>. It's only in the minified js file.

pwambach commented 9 years ago

Hey, yes i just found out there was a problem with the build process. It is fixed now in version 0.5.1. Thanks for reporting!