Never mind - I worked it out. The variables scope has to have a reference to the 'this' scope inside it. (if you dump out the variables scope, you will see it).
When I was recycling my object, I was removing the 'this' reference. If I put it back in, it all works fine. Mark On 7/10/06, Mark Mandel <[EMAIL PROTECTED]> wrote:
Hey all - I've got something bizarre going on, and it has to do with mixins going crazy on me. Very Basic scenario is - I create an object A, and then inject method b() on it. I use object A for a while, and when I'm done, I decide I want to recycle object A, so it can be used again. I pass object A off to my Cleaner, that removes methods b() from object A I then go to get object A again, and put method c() onto it. Now, SOMETIMES, when I access object A, I get an error stating that: Variable THIS is undefined. When trying to access in method c(). I get it on one object in on system - but I can't reproduce it anywhere else. But if I remove the recycle code, it works fine. I'm so confused. Has anyone else come across this error before? Had anyone done any work on *removing* mixins, not just adding them? and the consequences therein? Any help would be appreciated, I'm pulling my hair out. Cheers, Mark -- E: [EMAIL PROTECTED] W: www.compoundtheory.com ICQ: 3094740
-- E: [EMAIL PROTECTED] W: www.compoundtheory.com ICQ: 3094740 ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
