wlxml node: setClass
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 7 Oct 2013 14:45:56 +0000 (16:45 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 9 Oct 2013 14:58:40 +0000 (16:58 +0200)
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) {