this.dom = this.createDOM();
this.dom.data('canvas-element', this);
+ this.wlxmlNode.setData('canvasElement', this);
};
$.extend(DocumentElement.prototype, {
// DocumentNodeElement represents an element node from WLXML document rendered inside Canvas
var DocumentNodeElement = function(wlxmlNode, canvas) {
DocumentElement.call(this, wlxmlNode, canvas);
- wlxmlNode.setData('canvasElement', this);
this.init(this.dom);
};
detach: function(isChild) {
var parents;
+ if(this.gutterGroup) {
+ this.gutterGroup.remove();
+ }
if(_.isFunction(this.children)) {
this.children().forEach(function(child) {
child.detach(true);