X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a4e2af35996896240356ad8ca4c7b6003d4b9ff3..489e6a161f6b03191a325254a7fefa4f8425d575:/src/wlxml/wlxml.js diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 10a79ed..3195efa 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -12,8 +12,8 @@ var isMetaAttribute = function(attrName) { // -var WLXMLElementNode = function(nativeNode) { - smartxml.ElementNode.call(this, nativeNode); +var WLXMLElementNode = function(nativeNode, document) { + smartxml.ElementNode.call(this, nativeNode, document); }; WLXMLElementNode.prototype = Object.create(smartxml.ElementNode.prototype); @@ -22,10 +22,10 @@ $.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, { return this.getAttr('class'); }, getMetaAttributes: function() { - var toret = {}; + var toret = []; this.getAttrs().forEach(function(attr) { if(isMetaAttribute(attr.name)) { - toret[attr.name.substr(5)] = attr.value; + toret.push({name: attr.name.substr(5), value: attr.value}); } }); return toret;