Use correct document context for canvas render

This commit is contained in:
MoyuScript
2014-09-14 20:14:38 +03:00
parent 3628bd2c2b
commit 5a282666dc
5 changed files with 12 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
function Renderer(width, height, images, options) {
function Renderer(width, height, images, options, document) {
this.width = width;
this.height = height;
this.images = images;
this.options = options;
this.document = document;
}
Renderer.prototype.renderImage = function(container, bounds, borderData, imageContainer) {