Helping others use my stuff just means more people helping me find the bugs in 
it.

On Wed, Sep 4, 2013 at 8:35 AM, underscore_05 <roquerichardn...@gmail.com>
wrote:

> Yes, I already had a fixed awhile ago and you're right. 
> Anyway, thank you again and I hope you dont get tired of giving us a support
> ~ more powers
> Noong Miyerkules, Setyembre 04 2013 23:20:47 UTC+8, si Nutron ay sumulat:
>>
>> This is a simple fix.
>>
>> http://jsfiddle.net/LQvHV/1/
>>
>> Instances of Behavior and Delegator don't know about each other magically. 
>> Delegator has to be given a method to fetch its paired Behavior, and, if 
>> you're using any filter that calls `api.getDelegator()` then Behavior has 
>> to know about its bound Delegator, too. So you just need to do this:
>>
>> var behavior = new Behavior({});
>> var delegator = new Delegator({
>>     getBehavior: function () {
>>         return behavior;
>>     }
>> }).attach(document.body);
>> behavior.setDelegator(delegator).apply(document.body);
>>
>> I.e. move the `.apply(document.body);` until after you've created an 
>> instance of Delegator and pass that Delegator instance into behavior. My 
>> docs example didn't do this because I wasn't using Startup, but it should.
>>
>> Maybe I'll add a Behavior.init() method that just does these few lines for 
>> you for when your use case is the typical one...
>>
>>
>> On Wed, Sep 4, 2013 at 2:56 AM, Richard Neil Roque 
>> <roqueric...@gmail.com<javascript:>
>> > wrote:
>>
>>> I understand. thank you
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google Groups 
>>> "MooTools Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to mootools-user...@googlegroups.com <javascript:>.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
> -- 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MooTools Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to mootools-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to