wlxml: WLXMLElementNode.setMetaAttribute
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 22 Nov 2013 14:39:57 +0000 (15:39 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 22 Nov 2013 14:39:57 +0000 (15:39 +0100)
src/wlxml/wlxml.js

index fb5b328..63d2307 100644 (file)
@@ -49,6 +49,9 @@ $.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, {
         }.bind(this));
         return toret;
     },
         }.bind(this));
         return toret;
     },
+    setMetaAttribute: function(key, value) {
+        this.setAttr('meta-'+key, value);
+    },
     getOtherAttributes: function() {
         var toret = {};
         this.getAttrs().forEach(function(attr) {
     getOtherAttributes: function() {
         var toret = {};
         this.getAttrs().forEach(function(attr) {