consider the values stored on an element semi-private. Yes, you could
overwrite something already there, but MooTools itself stores things on
elements. You should only know about the values you put in there.

On Tue, Feb 16, 2010 at 1:11 PM, Trevor Orr <[email protected]> wrote:

> I ended up just storing a Hash in it.  I just thought that Element
> store/retrieve would have been a Hash.
>
>
>
>
> On Tue, Feb 16, 2010 at 11:00 AM, Aaron Newton <[email protected]> wrote:
>
>> Why not store an object?
>>
>> var myStuff = {
>>  ...everything you want...
>> }
>>
>> myElement.store('stuff', myStuff);
>>
>>
>> On Tue, Feb 16, 2010 at 10:11 AM, Trevor Orr <[email protected]> wrote:
>>
>>> So I can store and retrieve an unknown quantity and list of values for
>>> elements.  No a big if it's not there I can use the method mentioned in the
>>> other discussion, just would rather not have to.
>>>
>>>
>>>
>>>
>>> On Tue, Feb 16, 2010 at 10:04 AM, Aaron Newton <[email protected]> wrote:
>>>
>>>> What is the use case here? What's the value in finding all the stored
>>>> values?
>>>>
>>>> On Mon, Feb 15, 2010 at 4:28 PM, Trevor Orr <[email protected]> wrote:
>>>>
>>>>> Yeah I saw that and was hoping that it was just a undocumented thing or
>>>>> something I missed in the docs, I have done that a few times.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Feb 15, 2010 at 3:47 PM, Sanford Whiteman <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> > So we have these great functions to Store/Retrieve/Eliminate data
>>>>>> for
>>>>>> > elements, am I just missing something in the docs (again) or is
>>>>>> there no way
>>>>>> > to retrieve all the keys/data stored in an element?  If not is there
>>>>>> a
>>>>>> > reason?
>>>>>>
>>>>>> While  not  a  full answer, certainly the same question + a workaround
>>>>>> approach here:
>>>>>>
>>>>>>
>>>>>> http://groups.google.com/group/mootools-users/browse_thread/thread/f539dafadfc915a7
>>>>>>
>>>>>> -- Sandy
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to