[Laszlo-dev] what is 'put'?
P T Withington
ptw at pobox.com
Mon Mar 10 13:03:39 PDT 2008
Cruft for when I was trying to replace the use of Object with
something more like a real hash table, but it turned out to be too
slow to emulate a hash table in JS1 (JS2/AS3 have them, we should use
them).
Just get rid of the put bit.
On 2008-03-10, at 15:47 EDT, Henry Minsky wrote:
> In LzNode, there is a check for the existence of a method called
> 'put', on a setters hash table. What is that
> for? Is it some DHTML thing?
>
>
>
> function __LZaddSetter ( key , val ) {
> // Ensure you have your own private setters dictionary, not one
> // inherited from your superclass
> if (! this.hasOwnProperty('setters')) {
> // Debug.debug('__LZaddSetter: creating setters dictionary');
> this.setters = new LzInheritedHash(this.setters);
> }
> if ('put' in this.setters) {
> this.setters.put(key, val);
> } else {
> this.setters[key] = val;
> }
> }
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list