fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wlxml node: setClass
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.js
diff --git
a/src/wlxml/wlxml.js
b/src/wlxml/wlxml.js
index
3195efa
..
7dfbd99
100644
(file)
--- a/
src/wlxml/wlxml.js
+++ b/
src/wlxml/wlxml.js
@@
-21,6
+21,9
@@
$.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, {
getClass: function() {
return this.getAttr('class');
},
getClass: function() {
return this.getAttr('class');
},
+ setClass: function(klass) {
+ return this.setAttr('class', klass);
+ },
getMetaAttributes: function() {
var toret = [];
this.getAttrs().forEach(function(attr) {
getMetaAttributes: function() {
var toret = [];
this.getAttrs().forEach(function(attr) {