     )
   
   start: =>
-    
     # Request the appropriate WebFITS API (canvas or webgl)
     @getApi()
     

  
  constructor: (selector) ->
    super selector
    
    @stretch = 'linear'
    
    # Run when the WebFITS API is received
    @on 'swviewer:ready', =>
      # NOTE: Dimensions and global extent are hard coded
      el = document.querySelector(@selector)
      @wfits = new astro.WebFITS(el, @dimension)
      unless @wfits.ctx?

      dfs.push new $.Deferred()
    
    # Setup callback for when all requests are received
    $.when.apply(@, dfs)
      .done( (e) =>
        @computeNormalizedScales()
        scales = @collection.getColorScales()
