         r.remove()
 
       return this.render()
-    
 
     render: ()->
       this.$el

      url = @driver.getCurrentSlideScreenshot()
      console.log url

    previous: () ->
      #@driver.jump(@driver.currentSlide() - 1a
      @driver.previous()
      this.trigger('transitionSLide', {url: this.getCurrentSlide()})
    next: () ->
      #@driver.jump(@driver.currentSlide() + 1)
      @driver.next()
    jump: (num) ->
      @driver.jump(num)


      connection.set('bc', bc)
      remote = @remote = new Remote code.url
      baseFirebaseUrl = "https://qcommander.firebaseio-demo.com/#{@connection.get('token')}/"
       
      saveCurrentSlide = (data) ->
        info = new Firebase("https://qcommander.firebaseio-demo.com/#{connection.get('token')}/info")
        info.child('currentSlideUrl').set data.url
      
      # Push slide info
      slideInfo = new Firebase "#{baseFirebaseUrl}info/"
      slideInfo.set code
