X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/42c62a9c47f2d316ae1e0c8c854da72a4d3f1243..0487914c40881829a526a7a09b6d545f08aa28e7:/src/smartxml/smartxml.js 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); },