Skip to content

Commit 6a3db9b

Browse files
committed
adding Element.Properties.storage.js
1 parent c523a7f commit 6a3db9b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Element.Properties.storage.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Element.Properties.storage = {
2+
set: function(obj){
3+
for (key in obj) this.store(key, obj[key]);
4+
}
5+
};
6+
7+
/*
8+
var el = new Element('div', {
9+
storage: {
10+
'nick': 'JanK'
11+
}
12+
});
13+
14+
el.retrieve('nick');
15+
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy