Commit a8d933c5 by Tomas Alabes

getData function to elements

parent 03aedfd9
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3078,6 +3078,16 @@ ...@@ -3078,6 +3078,16 @@
} }
return this; return this;
}; };
/*\
* Element.getData
[ method ]
**
* Retrieves the element data
= (object) data
\*/
elproto.getData = function () {
return eldata[this.id] || {};
};
/*\ /*\
* Element.hover * Element.hover
[ method ] [ method ]
......
...@@ -377,6 +377,7 @@ ...@@ -377,6 +377,7 @@
}; };
(typeof module != "undefined" && module.exports) ? (module.exports = eve) : (typeof define != "undefined" ? (define("eve", [], function() { return eve; })) : (glob.eve = eve)); (typeof module != "undefined" && module.exports) ? (module.exports = eve) : (typeof define != "undefined" ? (define("eve", [], function() { return eve; })) : (glob.eve = eve));
})(this); })(this);
// ┌─────────────────────────────────────────────────────────────────────┐ \\ // ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ "Raphaël 2.1.0" - JavaScript Vector Library │ \\ // │ "Raphaël 2.1.0" - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\ // ├─────────────────────────────────────────────────────────────────────┤ \\
...@@ -3457,6 +3458,16 @@ ...@@ -3457,6 +3458,16 @@
} }
return this; return this;
}; };
/*\
* Element.getData
[ method ]
**
* Retrieves the element data
= (object) data
\*/
elproto.getData = function () {
return eldata[this.id] || {};
};
/*\ /*\
* Element.hover * Element.hover
[ method ] [ method ]
...@@ -5572,6 +5583,7 @@ ...@@ -5572,6 +5583,7 @@
loaded = true; loaded = true;
}); });
})(); })();
// ┌─────────────────────────────────────────────────────────────────────┐ \\ // ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël - JavaScript Vector Library │ \\ // │ Raphaël - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\ // ├─────────────────────────────────────────────────────────────────────┤ \\
...@@ -6931,7 +6943,8 @@ window.Raphael.svg && function (R) { ...@@ -6931,7 +6943,8 @@ window.Raphael.svg && function (R) {
}; };
})(method); })(method);
} }
}(window.Raphael);// ┌─────────────────────────────────────────────────────────────────────┐ \\ }(window.Raphael);
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël - JavaScript Vector Library │ \\ // │ Raphaël - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\ // ├─────────────────────────────────────────────────────────────────────┤ \\
// │ VML Module │ \\ // │ VML Module │ \\
...@@ -7903,4 +7916,4 @@ window.Raphael.vml && function (R) { ...@@ -7903,4 +7916,4 @@ window.Raphael.vml && function (R) {
}; };
})(method); })(method);
} }
}(window.Raphael); }(window.Raphael);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment