Re: child wrappers

David Crawshaw <[email protected]> Wed, 9 Apr 2003 09:52:22 +1000
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Tuesday, April 8, 2003, at 09:03  PM, Adam Megacz wrote:
> Suggestions?

Another thought. Instead of:

<redirect target="target" wrapper="org.xwt.foo"/>
<template>  ...

What about:

<redirect target="target" wrapper="true"/>
<template>
_0 = function(v) {
   if ($target.indexof(v) > -1) xwt.thread = function() { 
v.apply("org.xwt.foo"); }
}
</template>

In the execution path from adding the child, just use a new, empty box. 
Let the work be initiated from the _0 trap, where all the normal rules 
apply.

No fuss or bother or special exceptions that way.

d


_______________________________________________
http://lists.xwt.org/listinfo/dev