Heh. That's literally the exact implementation of `_.clone`


On Tue, Jul 9, 2013 at 12:31 AM, Dhruva Ray <notifications@github.com>wrote:

> In test/associated-model.js:
>
> >          Models.Job = Backbone.AssociatedModel.extend({
> >              relations:[
> >                  {
> >                      type:Backbone.One,
> >                      key:'organizable',
> > -                    relatedModel:function (attributes) {
> > -                        return Models[attributes['organizable_type'] || this.get('organizable_type')];
> > -                    }
> > +                    relatedModel: findRelatedType
>
> On the code snippet, there's probably no reason to clone.
>
> _.extend({},this.attributes,attributes)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dhruvaray/backbone-associations/pull/50/files#r5083032>
> .
>



-- 

Thanks,
Sean Griffin