Ok! got the message... Kinda used to code in Java... (dont start!) :)


2013/4/10 Tomas Neme <notifications@github.com>

> In drivers/playlists/mongo-driver.js:
>
> >
> >          self.scheds = db.collection('scheds');
> >          self.lists = db.collection('lists');
> > -        self.readPlaylists();
> > +
> > +        // these two lines must go, mosto will take care of calling these
> > +        var boundaries = self.validTimes();
> > +        self.readPlaylists(boundaries.from, boundaries.to);
> >
> >          channel.subscribe({channel: 'schedbackend', method: 'create'}, function(msg) {
>
> but it would be very much like providing constants or specific subscribe
> functions for events... imagine if instead of having
>
> object.on('start', function(){});
> object.on('end', function(){});
> object.on('foobar', function(){});
>
> we were to do this
>
> object.onStart(function(){})
> object.onEnd(function(){})
> ...
> object.onFooBar(function(){}) // ????
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/inaes-tic/mbc-mosto/pull/38/files#r3746492>
> .
>