 uploadcare.namespace 'widget.tabs', (ns) ->
   class ns.PreviewTab extends ns.BasePreviewTab
 
-    constructor: ->
+    constructor: (@container, @tabButton, @dialogApi, @settings, @name) ->
       super
 
       $.each @dialogApi.fileColl.get(), (i, file) =>

          utils.defer(startCrop)


    populateCropSizes: ->
      if @settings.crop.length <= 1
        return


      if state is 'error'
        @container.addClass('uploadcare--preview_status_error-' + data.error)

    initImage: (imgSize, cdnModifiers) =>
      img = @container.find('.uploadcare--preview__image')
      done = @container.find('.uploadcare--preview__done')

