On Apr 4, Jim Grandy wrote:
[snip]
> Since hash lookup ought to be cheap on any reasonable JS runtime, I
> could back off to consolidated routines that look up symbols in a hash,
> rather than completely split routines. 
I think this is the right thing to do.

Some static hashes on view of this sort:

LzView.prototype._lookups = { axes     : { x : "width" , y : "height" },
                              resource : { width : "resourcewidth" , 
                                           height: "resourceheight"  },
                              stretch   : { width : "unstretchedwidth" , 
                                            height: "unstretchedheight"  },
                              ....

would be generally useful.

A
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to