setOptions actually $unlink options and drop every on* property,
On Tue, Sep 7, 2010 at 6:35 PM, Sanford Whiteman < [email protected]> wrote: > > @Sanford: Yes, I'd notice also that the object is not the same object > > I created and pass to the toggles-option of ClassC. But I couldn't > > figure out how to solve this issue. And I didn't get the point of your > > "B1.addEvent works" advice? > > The quickest workaround I could see is using > > options.toggles.each(… > > instead of > > this.options.toggles.each(… > > That way, you are using the objects in the original `options` (the > argument passed to ::initialize) instead of the apparently $unlinked > objects that result from calling ::setOptions(options). > > -- S. > > -- http://tbela99.blogspot.com/ fax : (+33) 08 26 51 94 51
