indeed.

On Oct 15, 8:45 am, Rolf -nl <[email protected]> wrote:
> I like the ! in the PowerTools! name (tm). It gives that extra sugar
> it needs.
>
> On Oct 15, 1:41 am, Aaron Newton <[email protected]> wrote:
>
>
>
>
>
>
>
> > I agree, that is a much better solution.
>
> > On Thu, Oct 14, 2010 at 7:24 PM, Christoph Pojer
> > <[email protected]>wrote:
>
> > > The elegant solution can be found in class-extras:
> > >http://github.com/cpojer/mootools-class-extraswhichis part of
> > > PowerTools! for MooTools:http://cpojer.net/PowerTools
>
> > > On Oct 14, 11:49 pm, mooyah <[email protected]> wrote:
> > > > I see... thank you for the reply at least. If I do stumble across
> > > > something more elegant, I will let you know!
>
> > > > On Oct 14, 3:14 pm, Aaron Newton <[email protected]> wrote:
>
> > > > > Binds is probably going to be deprecated at some point in the
> > > relatively
> > > > > near future in favor of a different solution to this problem. Instead
> > > you
> > > > > should probably just do something like:
>
> > > > > this._bound = {
> > > > >   foo: this.foo.bind(this)
>
> > > > > };
>
> > > > > this.addEvent('foo', this._bound.foo);
>
> > > > > It's clunky, and it's what Binds was meant to fix, but ultimately 
> > > > > Binds
> > > has
> > > > > other issues, like the one you describe...
>
> > > > > On Thu, Oct 14, 2010 at 4:11 PM, mooyah <[email protected]> wrote:
> > > > > > I am having the exact problem as this post:
>
> > >http://www.mooforum.net/general12/binds-mutator-and-extended-classes-...
>
> > > > > > I have a deep OOD and each level has different methods which need to
> > > > > > be bound to the class instance. Has anyone found a solution for this
> > > > > > other than copying the Binds array from the extended classes down to
> > > > > > the class that is being created directly?

Reply via email to