From 76d0577287f1e82bb9375e640187a91723617ef9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 7 Oct 2013 16:45:56 +0200 Subject: [PATCH 1/1] wlxml node: setClass --- src/wlxml/wlxml.js | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.20.1