run () {
    // retrieve pipe element
    let $pipeData = document.querySelector('.app .app__pipe .pipe__data')

    // TODO this may fail, handle parse errors
    let pipeData = JSON.parse($pipeData.innerHTML)

    // extract pipe from data
    this._pipe = Pipe.extract(pipeData)

    // trigger view creation and initial layout
    let view = this.getView()
    view.layout()

    setTimeout(() => view.layout(), 100)

    return this
  }
/**
   * Bootstraps the application.
   * @return {Application} Fluent interface
   */
Bootstraps the application.
@return {Application} Fluent interface
Bootstraps the application . @return { Application } Fluent interface
run () {
    let $pipeData = document.querySelector('.app .app__pipe .pipe__data')
    let pipeData = JSON.parse($pipeData.innerHTML)
    this._pipe = Pipe.extract(pipeData)
    let view = this.getView()
    view.layout()
    setTimeout(() => view.layout(), 100)
    return this
  }
run ( ) { let $pipeData = document . querySelector ( '.app .app__pipe .pipe__data' ) let pipeData = JSON . parse ( $pipeData . innerHTML ) this . _pipe = Pipe . extract ( pipeData ) let view = this . getView ( ) view . layout ( ) setTimeout ( ( ) => view . layout ( ) , 100 ) return this }
Bootstraps the application.
Bootstraps the application .
// retrieve pipe element // TODO this may fail, handle parse errors // extract pipe from data // trigger view creation and initial layout