         ])
         @__api.onChange = utils.publicCallbacks(@__onChange)
         @__api.onUploadComplete = utils.publicCallbacks(@__onUploadComplete)
-        @__api.onOpenDialog = utils.publicCallbacks(@__onOpenDialog)
+        @__api.onDialogOpen = utils.publicCallbacks(@__onDialogOpen)
         @__api.inputElement = @element.get(0)
       @__api

      @validators = @settings.validators = []
      @currentObject = null

      @__onOpenDialog = $.Callbacks()
      @__onUploadComplete = $.Callbacks()
      @__onChange = $.Callbacks().add (object) =>
        object?.promise().done (info) =>

          @__handleDirectSelection('object', input.files)
      else
        dialogApi = uploadcare.openDialog(@currentObject, tab, @settings)
        @__onDialogOpen.fire(dialogApi)
        dialogApi.done(@__setObject)

    api: ->
