this.publisher = publisher ? publisher : function() {};
};
$.extend(Canvas.prototype, {
loadWlxmlDocument: function(wlxmlDocument) {
this.publisher = publisher ? publisher : function() {};
};
$.extend(Canvas.prototype, {
loadWlxmlDocument: function(wlxmlDocument) {
var canvasDOM = this.generateCanvasDOM(wlxmlDocument.root);
this.wrapper = $('<div>').addClass('canvas-wrapper').attr('contenteditable', true);
var canvasDOM = this.generateCanvasDOM(wlxmlDocument.root);
this.wrapper = $('<div>').addClass('canvas-wrapper').attr('contenteditable', true);
- fromXML: function(wlxmlNode, publisher) {
- return new Canvas(wlxmlNode, publisher);
+ fromXMLDocument: function(wlxmlDocument, publisher) {
+ return new Canvas(wlxmlDocument, publisher);