Move your createObject() call to within the init() method. The pseudo 
constructor carries a whole pile of issues with it (none of which I can exactly 
remember at the moment) because of the minute technical details of the way 
things are run at instantiation time.

Within init() is just generally considered the best practice and a good 
starting place to rule out any other weirdness.

J

On Nov 25, 2009, at 2:30 AM 11/25/09, DreamKnight wrote:

> ...
> Looks something like this:
> <cfcomponent>
> <cfscript>
> variables.getclass = createobject("component", "com.path.class").init
> ();
> </cfscript>
> 
> <cffunction name="init" ...>
> <cfreturn this />
> </cffunction>
> ...

--

You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en.


Reply via email to