         osu.ajaxError data.jqXHR
       complete: (_e, data) ->
         console.log 'upload done'
-    $button._intialised = true
+    $button[0]._intialised = true
 
 
   update: (cover) =>


    $button = @$uploadButton()

    return if $button._intialised

    $button.fileupload
      url: $button.attr('data-url')


    $button = @$uploadButton()

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