Quantcast
Channel: javascript – frag (frăg)
Viewing all articles
Browse latest Browse all 37

How to clone element storage in mootools

$
0
0
Ever needed to clone an element and take your element storage with it? I have and it’s not easy. There’s Element.cloneEvents(), which takes the storage.events callbacks but any other storage you may have used remains unavailable behind the closure that MooTools uses for the storage object. This bit of code tracks of any data you [...]

Viewing all articles
Browse latest Browse all 37

Trending Articles