>
> $('sample_input').store('test', 'Hello moto');

var uid = $('sample_input').uid;

$('sample_input').destroy();

console.log(Element.Storage.get(uid)['test']); // outputs Hello moto


On Sun, Sep 21, 2008 at 1:24 AM, nutron <[EMAIL PROTECTED]> wrote:

>
>
> I'll be more specific. Element storage properties are not stored on the
> element. They are stored in a different property group on the Element
> namespace (Element.Storage). All that is stored on the element itself is a
> unique id that is keyed to it's storage repository. This essentially
> manages
> memory for you. If you destroy and element, the destroy() method will free
> up this memory storage space.
>
>
> anutron wrote:
> >
> > Element storage automatically cleans up the items for you.
> >
> >
> > batman42ca wrote:
> >>
> >>
> >> If I use element.store(), and then later delete the element, does the
> >> storage get automatically deleted too? If not, how do I delete the
> >> storage for an element I've just deleted.
> >>
> >>
> >
> >
>
>
> -----
> The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com
> CNET Clientside:  http://clientside.cnet.com clientside.cnet.com
> --
> View this message in context:
> http://n2.nabble.com/how-to-delete-element-storage-tp1107130p1107300.html
> Sent from the MooTools Users mailing list archive at Nabble.com.
>
>


-- 
Guillermo Rauch
http://devthought.com

Reply via email to