fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linting
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.js
diff --git
a/src/wlxml/wlxml.js
b/src/wlxml/wlxml.js
index
bdf7527
..
10a79ed
100644
(file)
--- a/
src/wlxml/wlxml.js
+++ b/
src/wlxml/wlxml.js
@@
-24,16
+24,18
@@
$.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, {
getMetaAttributes: function() {
var toret = {};
this.getAttrs().forEach(function(attr) {
getMetaAttributes: function() {
var toret = {};
this.getAttrs().forEach(function(attr) {
- if(isMetaAttribute(attr.name))
- meta[attr.name.substr(5)] = attr.value;
+ if(isMetaAttribute(attr.name)) {
+ toret[attr.name.substr(5)] = attr.value;
+ }
});
return toret;
},
getOtherAttributes: function() {
var toret = {};
this.getAttrs().forEach(function(attr) {
});
return toret;
},
getOtherAttributes: function() {
var toret = {};
this.getAttrs().forEach(function(attr) {
- if(attr.name !=
'class' && !isMetaAttribute(attr.name))
+ if(attr.name !=
= 'class' && !isMetaAttribute(attr.name)) {
toret[attr.name] = attr.value;
toret[attr.name] = attr.value;
+ }
});
return toret;
}
});
return toret;
}