getData function to elements
This commit is contained in:
parent
03aedfd9d5
commit
a8d933c59d
File diff suppressed because one or more lines are too long
|
|
@ -3077,6 +3077,16 @@
|
|||
eldata[this.id] && delete eldata[this.id][key];
|
||||
}
|
||||
return this;
|
||||
};
|
||||
/*\
|
||||
* Element.getData
|
||||
[ method ]
|
||||
**
|
||||
* Retrieves the element data
|
||||
= (object) data
|
||||
\*/
|
||||
elproto.getData = function () {
|
||||
return eldata[this.id] || {};
|
||||
};
|
||||
/*\
|
||||
* Element.hover
|
||||
|
|
|
|||
17
raphael.js
17
raphael.js
|
|
@ -377,6 +377,7 @@
|
|||
};
|
||||
(typeof module != "undefined" && module.exports) ? (module.exports = eve) : (typeof define != "undefined" ? (define("eve", [], function() { return eve; })) : (glob.eve = eve));
|
||||
})(this);
|
||||
|
||||
// ┌─────────────────────────────────────────────────────────────────────┐ \\
|
||||
// │ "Raphaël 2.1.0" - JavaScript Vector Library │ \\
|
||||
// ├─────────────────────────────────────────────────────────────────────┤ \\
|
||||
|
|
@ -3456,6 +3457,16 @@
|
|||
eldata[this.id] && delete eldata[this.id][key];
|
||||
}
|
||||
return this;
|
||||
};
|
||||
/*\
|
||||
* Element.getData
|
||||
[ method ]
|
||||
**
|
||||
* Retrieves the element data
|
||||
= (object) data
|
||||
\*/
|
||||
elproto.getData = function () {
|
||||
return eldata[this.id] || {};
|
||||
};
|
||||
/*\
|
||||
* Element.hover
|
||||
|
|
@ -5572,6 +5583,7 @@
|
|||
loaded = true;
|
||||
});
|
||||
})();
|
||||
|
||||
// ┌─────────────────────────────────────────────────────────────────────┐ \\
|
||||
// │ Raphaël - JavaScript Vector Library │ \\
|
||||
// ├─────────────────────────────────────────────────────────────────────┤ \\
|
||||
|
|
@ -6931,7 +6943,8 @@ window.Raphael.svg && function (R) {
|
|||
};
|
||||
})(method);
|
||||
}
|
||||
}(window.Raphael);// ┌─────────────────────────────────────────────────────────────────────┐ \\
|
||||
}(window.Raphael);
|
||||
// ┌─────────────────────────────────────────────────────────────────────┐ \\
|
||||
// │ Raphaël - JavaScript Vector Library │ \\
|
||||
// ├─────────────────────────────────────────────────────────────────────┤ \\
|
||||
// │ VML Module │ \\
|
||||
|
|
@ -7903,4 +7916,4 @@ window.Raphael.vml && function (R) {
|
|||
};
|
||||
})(method);
|
||||
}
|
||||
}(window.Raphael);
|
||||
}(window.Raphael);
|
||||
|
|
|
|||
Loading…
Reference in New Issue