On 27 April 2013 00:29, Niv Sardi <notifications@github.com> wrote:
>
> In models/Media.js:
>
> > -            timein:  0,
> > -            timeout: 0,
> > -        },
> > -        overlay: [],
> > -        starts: 0,
> > -        ends: 0,
> > +    defaults: function () {
> > +        return {
> > +            trim: {
> > +                timein:  0,
> > +                timeout: 0,
> > +            },
> > +            overlay: [],
> > +            starts: 0,
> > +            ends: 0,
> > +            _id: uuid.v4(),
>
> why change the whole return thing ?
> I think defaults works fine as a hash.


Because I want the _id to be a different uuid each time I create a new Piece.
I tried doing a this.set() within initialize but it didn't quite
worked. Maybe it was lack of sleep, will try again today.