         $uploader = $(@)
         uploader = $uploader.data()
 
-        prefix = uploader.prefix
-        throw "prefix isn't defined" unless prefix?
-
         multiselect = settings.multiselect or uploader.multiselect
 
         uploaderId = $.md5(Math.random())[0..3]

          ".replace /\ /g, ''

        openUploader = ->
          popupWindow = open getUrl(), 'NMD Media Lib', 'scrollbars=1, width=800, height=500'
          popupWindow.focus()

        openUploader() if settings.open

        # Вешаем открытие окна с загрузчиком на кнопку с классом js-uploader-open
        $uploader.find('.js-uploader-open').on 'click', (e) ->
          e.preventDefault()
          e.stopPropagation()
          openUploader()

        # Инициализируем iframe с загрузчиком
        $uploaderIframe = $uploader.find('.js-uploader-iframe')
        if $uploaderIframe.length
          iframeTemplate = _.template '''
            <iframe width='<%= width %>' height='<%= height %>' src='<%= src %>' frameborder='0'></iframe>
          '''
          initIframes = ($iframes) ->
            $iframes.each ->
              $iframe = $ @
              iframeData = $iframe.data()
              $iframe.html iframeTemplate
                src: getUrl()
                width: iframeData.width or '100%'
                height: iframeData.height or 500
          $uploaderIframeOpen = $uploader.find('.js-uploader-iframe-open')
          if $uploaderIframeOpen.length
            $uploaderIframeOpen.on 'click', -> initIframes($uploaderIframe)
          else
            initIframes($uploaderIframe)

    select: (options) ->
      settings = _.extend {}, options

        else $uploader.attr 'id', uploaderId

        getUrl = ->
          # "Живой" префикс
          prefix = $uploader.data('prefix')
          throw "prefix isn't defined" unless prefix?

          url = "
            #{settings.host}/#
            v2/
