* Element.getStorage(@element) -> Hash * * Returns the [[Hash]] object that stores custom metadata for this element.
(element)
| 3115 | * Returns the [[Hash]] object that stores custom metadata for this element. |
| 3116 | **/ |
| 3117 | function getStorage(element) { |
| 3118 | if (!(element = $(element))) return; |
| 3119 | |
| 3120 | var uid = getUniqueElementID(element); |
| 3121 | |
| 3122 | if (!Element.Storage[uid]) |
| 3123 | Element.Storage[uid] = $H(); |
| 3124 | |
| 3125 | return Element.Storage[uid]; |
| 3126 | } |
| 3127 | |
| 3128 | /** |
| 3129 | * Element.store(@element, key, value) -> Element |
no test coverage detected