X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2d0b2293c1110c3fab4e804be31bc233a4159bcb..81f3c62162311a0c697007389567e79aae9e597f:/src/smartxml/smartxml.js?ds=sidebyside diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 9862fab..96fcdfe 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -71,6 +71,14 @@ $.extend(ElementNode.prototype, DocumentNode.prototype, { this._$.attr(name, value); }, + getAttrs: function() { + var toret = []; + for(var i = 0; i < this.nativeNode.attributes.length; i++) { + toret.push(this.nativeNode.attributes[i]); + } + return toret; + }, + append: function(documentNode) { this._$.append(documentNode.nativeNode); },