[bfprog] Unregistering Handlers

Forrest Thiessen thiessen at cyberscapearena.com
Mon Jul 25 07:49:22 PDT 2005


If you're happy, I'm happy!  Enjoy the rest of your day!  ;-)

--Forrest


Einar S. Idsø wrote:

>Ah, that is really cool! I didn't know you could split a "function
>object" into parts like this and "cancel" individual parts - good idea!
>I'll just pretend it was my suggestion that led you to this solution,
>which should ensure my happines for the rest of the day ;)
>
>Einar
>
>  
>
>>I eventually figured out a byzantine way around the problem, at least
>>for my purposes:
>>    
>>http://bf2.fun-o-matic.org/index.php/Cookbook:Dynamically_Changing_an_Event_Handler
>>The method I came up with recognizes that I can't do anything about the
>>original handler function object, but I *can* swap out the code object
>>inside of it. It doesn't result in the handler becoming unregistered,
>>but what I was really after was a way to replace a standard handler with
>>one of my own, anyway, so this fits the bill.
>>    
>>
>_______________________________________________
>BFProg mailing list
>BFProg at lists.matureasskickers.net
>http://lists.matureasskickers.net/mailman/listinfo/bfprog
>  
>


More information about the BFProg mailing list