Skip to content

Commit

Permalink
Merge pull request #814 from asdil12/flicker
Browse files Browse the repository at this point in the history
Prevent needle editor flickering (progress #12984)
  • Loading branch information
coolo committed Aug 2, 2016
2 parents 303b15e + 019fbbd commit a207698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/javascripts/needleeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ function NeedleEditor(needle) {
NeedleEditor.prototype.init = function() {
var editor = this;

if (this.cv) {
this.cv.set_bgImage(this.bgImage);
return;
}

var cv = this.cv = new CanvasState(this.canvas);

cv.set_bgImage(this.bgImage);
Expand Down

0 comments on commit a207698

Please sign in to comment.