wlxml node: setClass
[fnpeditor.git] / src / wlxml / wlxml.js
index 3195efa..7dfbd99 100644 (file)
@@ -21,6 +21,9 @@ $.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, {
     getClass: function() {
         return this.getAttr('class');
     },
+    setClass: function(klass) {
+        return this.setAttr('class', klass);
+    },
     getMetaAttributes: function() {
         var toret = [];
         this.getAttrs().forEach(function(attr) {