From: Aleksander Ɓukasz Date: Mon, 7 Oct 2013 14:45:56 +0000 (+0200) Subject: wlxml node: setClass X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/76d0577287f1e82bb9375e640187a91723617ef9 wlxml node: setClass --- diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 3195efa..7dfbd99 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -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) {