 
     $button = @$uploadButton()
 
-    return if $button._intialised
+    return if $button[0]._intialised
 
     $button.fileupload
       url: $button.attr('data-url')

        osu.ajaxError data.jqXHR
      complete: (_e, data) ->
        console.log 'upload done'
    $button._intialised = true


  update: (cover) =>


    $button = @$uploadButton()

    if $button[0]._intialised
      $button.fileupload 'option',
        url: cover.url
        method: cover.method
