     @similar = null
     @form = form
     @force_file = null
-    form.on 'submit', @form_submit_event.bindAsEventListener(this)
+    form.on 'submit', @form_submit_event
     return
 
-  form_submit_event: (e) ->
+  form_submit_event: (e) =>
     post_file = @form.down('#file')
 
     # If the files attribute isn't supported, or we have no file (source upload), use regular


  # When the image finishes loading after form_submit_event sets it, update the canvas
  # thumbnail from it.
  image_load_event: (e) ->
    # Reduce the image size to thumbnail resolution.
    width = @image.width
    height = @image.height

      idx += 4
    false

  image_abort_event: (e) =>
    @completed
      success: false
      aborted: true
    return

  # This happens on normal errors, usually because the file isn't a supported image.
  image_error_event: (e) =>
    @completed success: false
    return

