       @cancelAnyScheduledDrag()
 
       # Call any user-supplied stop callback
-      @config.stop?(e)
+      @getConfig().stop?(e)
 
     handleDrag: (e) ->
       @scheduleDrag =>

      @setupElement() unless @setupPerformed

      # Call any user-supplied start callback
      @config.start?(e)

      # Store the start offset of the draggable, with respect to the document
      @elementStartDocumentOffset = @$element.offset()

      # Configure the drag helper
      @$helper =
        switch @config.helper
          when 'clone' then @synthesizeHelperByCloning @$element
          else @$element # Use the element itself


    #

    isValidHandle: (element) ->
      if @getConfig().handle
        $element = $(element)

        # Is this element the handle itself, or a descendant of the handle?
        !!$element.closest(@getConfig().handle).length
      else
        # No handle was specified; anything is fair game
        true
