YAY! Thank you very much, Sanford! You are my personal hero, you've made my day! Thx thx thx! :)
-- Christian On 7 Sep., 19:35, 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.
