callback ffs :)


On Fri, Mar 8, 2013 at 12:04 PM, Trifan Alexandru
<notifications@github.com>wrote:

> In lib/data_layer.js:
>
> >          /*
> >           * 4. call it
> >           */
> >
> >          process.nextTick(function () {
> >              try {
> > -                var sessionOptions = {
> > -                    sessionId: componentOpt.request.sessionId,
> > -                    component: {
> > -                        id: componentOpt.id
> > -                    }
> > -                };
> > +                var sessionId = componentOpt.request.sessionId,
> > +                    sessionStore = componentOpt.request.sessionStore;
> > +
> > +                if (component.useSession) {
> > +                    // Get the session for the current component.
> > +                    sessionStore.get(sessionId, componentOpt.id).then(function (session) {
> > +                        var cb = function (err, context) {
>
> It doesn't say anything to me cb
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rainjs/rainjs/pull/56/files#r3295372>
> .
>



-- 

Best regards,
Alex