I think that the basic reason for the separate store is to provide insulation from any current, past, or future browsers tramping on a key name you may choose today and test in some subset of all browsers. Browser scripting is fun enough in IE with its amusing conflation of Name and ID properties without getting into the weeds with a perfectly- safe-seeming data element being confused for some completely other property or method.

Walter

On Nov 21, 2010, at 2:15 PM, Luke wrote:

Hi,

is there anyting wrong with extending a DOM-Object with

$('myelement').myvariable = "something";

or why is there the prototype-method store, which saves values in a
seperate hash?

Thank you,
Lukas

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .


--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to