handle situation when nothing was actually unwrapped
[fnpeditor.git] / src / wlxml / wlxml.js
index fb5b328..63d2307 100644 (file)
@@ -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) {