Który ? ten co sprawdza czy runFun != null ? Czy ten co sprawdza czy kod
został załadowany do clienta przy uzupełnianiu ?


2014-05-08 18:01 GMT+02:00 RoXeon <notifications@github.com>:

> In src/js_injector.coffee:
>
> > +  # @param {Integer} taskId specified task identificator
> > +  # @param {Function} runFun specified task processing function
> > +  # @default {null} runFun
> > +  ###
> > +
> > +  injectCode: (taskId, runFun = null) ->
> > +
> > +    if runFun != null
> > +      console.log "CodeInjector:Loading code for task #{taskId}..."
> > +      taskFunctionsList[taskId] = runFun;
> > +      for client in @connectionManager.getActiveConnections()
> > +        @connectionManager.sendNewTaskToPeer(client, taskId, taskFunctionsList[taskId])
> > +      console.log "CodeInjector::Code loaded for task #{taskId} !"
> > +    else
> > +      console.log "CodeInjectror::Complementing clients for task #{taskId}..."
> > +      if @connectionManager.onCodeLoaded != 'code_loaded'
>
> Po co ten if i co on w ogóle robi?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/TheTaz/IO2014/pull/67/files#r12436821>
> .
>