+
+var CommentManager = function(wlxmlElement) {
+ this.el = wlxmlElement;
+};
+
+$.extend(CommentManager.prototype, {
+ setup: function() {
+ this.el.clearWidgets();
+
+ this.widget = widgets.commentAdnotation(this.el.node);
+ this.el.addWidget(this.widget);
+ this.widget.DOM.show();
+ },
+ updateMetadata: function() {
+ // var parts = [];
+ // this.el.node.getMetadata().forEach(function(row) {
+ // parts.push(row.getValue());
+ // }, 'creator');
+ // this.widget.text(parts.join(', '));
+ this.widget.update(this.el.node);
+ }
+});
+managers.set('aside', 'comment', CommentManager);
+