 class Flight
+  # Private
   version: '0.0.1'
   isTransitioning: false
   startPage: ''

    else
      throw new Error "#flight or .content not found."
  
  setScroller: (wrapper) =>
    
      if @iScrollInstance? then @iScrollInstance.destroy(); @iScrollInstance = null
    
      window.setTimeout =>
        @iScrollInstance = new iScroll(wrapper.getElementsByClassName('wrapper')[0].id)        
      , 0
  # detects user agent being used
  detectUserAgent: ->
    userAgent = window.navigator.userAgent

      if options.transitionAnimation?
        @transitionAnimation = options.transitionAnimation
      if options.speed?
        @speed = options.speed           
        
    # see what device we're using
    @detectUserAgent()
