Re: child wrappers
David Crawshaw <[email protected]> Wed, 9 Apr 2003 21:53:48 +1000
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, April 9, 2003, at 09:51 PM, Charles Goodwin wrote:
> v.__x = function( dx ) {
> if ( arguments.length ) return v.x;
> else v.x = dx;
> }
>
> v.__y = function( dy ) {
> if ( arguments.length ) return v.y;
> else v.y = dy;
> }
>
> v.__z = function( dz ) {
> if ( arguments.length ) return v.z;
> else v.z = dz;
> }
Well like I said before, it's not nearly that bad.
v.__x = v.__y = v.__z = function(a) {
if (arguments.length == 0) return thisbox[arguments.trapname];
thisbox[arguments.trapname] = a;
}
It scales pretty well. That's my only argument against listen.
d
_______________________________________________
http://lists.xwt.org/listinfo/dev