From: Aleksander Ɓukasz Date: Fri, 22 Nov 2013 14:39:57 +0000 (+0100) Subject: wlxml: WLXMLElementNode.setMetaAttribute X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/65bc0821986afa202fcb6b7e8e77661f951b808d?ds=inline;hp=275952d30bfcd6f5aecc2710a0df0cd489ea71f6 wlxml: WLXMLElementNode.setMetaAttribute --- diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index fb5b328..63d2307 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -49,6 +49,9 @@ $.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, { }.bind(this)); return toret; }, + setMetaAttribute: function(key, value) { + this.setAttr('meta-'+key, value); + }, getOtherAttributes: function() { var toret = {}; this.getAttrs().forEach(function(attr) {