From: Aleksander Ɓukasz Date: Fri, 27 Sep 2013 09:31:18 +0000 (+0200) Subject: get/set attr X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/da6bb077bae1614af05e0071fbfbe6ddddf4c267?ds=inline get/set attr --- diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index b7fc3f1..04449cf 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -62,6 +62,14 @@ $.extend(ElementNode.prototype, DocumentNode.prototype, { return new ElementNode(this._$.parent()); }, + getAttr: function(name) { + return this._$.attr(name); + }, + + setAttr: function(name, value) { + this._$.attr(name, value); + }, + append: function(documentNode) { this._$.append(documentNode.nativeNode); },