edtior: fix exercise.order document events handling
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / container.js
index 069c78a..663a159 100644 (file)
@@ -8,9 +8,11 @@ var $ = require('libs/jquery'),
 
 
 var Container = function(nodes, params, element) {
+    params = params || {};
     _.extend(this, params);
     this.dom = this.dom || $('<div>');
     this.dom.addClass('canvas-container');
+    this.dom.toggleClass('reset-background', !!params.resetBackground);
     this.element = element;
 
     nodes.forEach(function(node) {