Change canvasEl to work on browser and node.

This commit is contained in:
Andrea Bogazzi 2016-02-08 15:20:18 +01:00
parent ca7d16a041
commit fb42a34bcd

View file

@ -59,7 +59,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati
this.renderAll();
var canvasEl = this.lowerCanvasEl,
var canvasEl = this.contextContainer.canvas,
croppedCanvasEl = this.__getCroppedCanvas(canvasEl, cropping);
// to avoid common confusion https://github.com/kangax/fabric.js/issues/806