Update text.class.js

avoid ruining the stack on offsetX and offsetY equal to 0
This commit is contained in:
Andrea Bogazzi 2015-05-10 18:51:31 +02:00
parent 323c648961
commit 5b429185f7

View file

@ -446,7 +446,7 @@
}
console.log(ctx.strokeStyle);
ctx[method](chars, left, top);
(offsetX || offsetY) && ctx.restore();
this[shortM].toLive && ctx.restore();
},
/**