X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/c833dec45110d8cb85cdf63813a17b1c27516552..fd61d32052c78abe8ea8adba3ca0de00b5e12976:/src/editor/modules/documentCanvas/canvas/container.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/container.js b/src/editor/modules/documentCanvas/canvas/container.js index 069c78a..663a159 100644 --- a/src/editor/modules/documentCanvas/canvas/container.js +++ b/src/editor/modules/documentCanvas/canvas/container.js @@ -8,9 +8,11 @@ var $ = require('libs/jquery'), var Container = function(nodes, params, element) { + params = params || {}; _.extend(this, params); this.dom = this.dom || $('
'); this.dom.addClass('canvas-container'); + this.dom.toggleClass('reset-background', !!params.resetBackground); this.element = element; nodes.forEach(function(node) {