this.dom = this.createDOM();
this.dom.data('canvas-element', this);
this.dom = this.createDOM();
this.dom.data('canvas-element', this);
sameNode: function(other) {
return other && (typeof other === typeof this) && other.dom[0] === this.dom[0];
},
sameNode: function(other) {
return other && (typeof other === typeof this) && other.dom[0] === this.dom[0];
},
// DocumentNodeElement represents an element node from WLXML document rendered inside Canvas
var DocumentNodeElement = function(wlxmlNode, canvas) {
DocumentElement.call(this, wlxmlNode, canvas);
// DocumentNodeElement represents an element node from WLXML document rendered inside Canvas
var DocumentNodeElement = function(wlxmlNode, canvas) {
DocumentElement.call(this, wlxmlNode, canvas);
createDOM: function() {
var wrapper = $('<div>').attr('document-node-element', ''),
widgetsContainer = $('<div>')
createDOM: function() {
var wrapper = $('<div>').attr('document-node-element', ''),
widgetsContainer = $('<div>')
contentContainer = $('<div>')
.attr('document-element-content', '');
contentContainer = $('<div>')
.attr('document-element-content', '');