 
       __cancel: =>
         @__reset()
-        @setValue ''
+        @setValue('')
 
       __setupWidget: ->
         # Initialize the file browse button


        @reloadInfo()

      setValue: (value) ->
        @element.val(value)

        @reloadInfo()

      reloadInfo: ->
        id = utils.uuidRegex.exec @element.val()


          if id
            info = uploads.fileInfo(id, @settings)
            @__setLoaded(info, false)
          else
            @__reset()

      __changed: (e) =>
        @reloadInfo()

      __setLoaded: (infoPr, changed = true) ->
        $.when(infoPr)
          .fail(@__fail)
          .done (info) =>
            if @settings.imagesOnly && !uploads.isImage(info)
              return @__fail('image')
            @template.setFileInfo(info)
            @template.loaded()
            @setValue(info.fileId, changed)

      __fail: (type) =>
        @__cancel()
