fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smartxml: allow for setting metadata on nodes
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
bac53af
..
034b907
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-54,6
+54,13
@@
var ElementNode = function(nativeNode, document) {
$.extend(ElementNode.prototype, DocumentNode.prototype, {
nodeType: Node.ELEMENT_NODE,
$.extend(ElementNode.prototype, DocumentNode.prototype, {
nodeType: Node.ELEMENT_NODE,
+ setData: function(key, value) {
+ this._$.data(key, value);
+ },
+ getData: function(key) {
+ return this._$.data(key);
+ },
+
getTagName: function() {
return this.nativeNode.tagName.toLowerCase();
},
getTagName: function() {
return this.nativeNode.tagName.toLowerCase();
},