incubator-xap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Margaris" <jmarga...@nexaweb.com>
Subject RE: Dojo packaging stuff
Date Tue, 27 Jun 2006 17:02:23 GMT
In this case there isn't any relation between LogFactory() and xap other
than the call to eval in indirectly called from a Xap method. I'm not
100% sure why this is a problem exactly.

James Margaris

-----Original Message-----
From: Michael Turyn [mailto:MTuryn@nexaweb.com] 
Sent: Tuesday, June 27, 2006 11:43 AM
To: xap-dev@incubator.apache.org
Subject: RE: Dojo packaging stuff

James wrote:
[...]
>function LogFactory(){}
>vs.
>LogFactory = function(){}
>
>When you eval() the second one you can use LogFactory later. When you
eval the first one a call to LogFactory >later gives you symbol
undefined. 
>

Is this a problem when all functions are scoped by something owned by
[something owned by| [...] ] the "xap" object?



========================================================
M. Turyn
Software Engineer, Nexaweb Inc.


Mime
View raw message