+CanvasNode.prototype.setClass = function(klass) {
+ if(klass != this.getClass()) {
+ var c = this;
+ this.getMetaAttrs().forEach(function(attr) {
+ if(!classAttributes.hasMetaAttr(klass, attr.name))
+ c.dom.removeAttr('wlxml-meta-' + attr.name);
+ });
+ this.dom.attr('wlxml-class', klass);
+ }
+};
+