How to clone element storage in mootools
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 store (via the lstore method… Read more →
Recent Comments