     $(window).on 'scroll.drop', debounce(-> drop.positionAll())
 
 drop =
-
     baseClassNames:
         drop: 'drop'
         dropContent: 'drop-content'

    updateBodyClasses: ->
        anyOpen = false

        $.each drop.dropTargets, (i, $target) -> anyOpen = true if $target.drop 'isOpened'

        if anyOpen
            $('body').addClass(drop.baseClassNames.opened).removeClass(drop.baseClassNames.allClosed)
        else
            $('body').removeClass(drop.baseClassNames.opened).addClass(drop.baseClassNames.allClosed)


jQueryMethods =

    init: (opts) -> this.each ->
        $target = $ @
        drop.dropTargets.push $target



    attach: (attachFirst, attachSecond) ->
        $target = $ @
        options = $target.data('drop')

        $([$target[0], options.$drop[0]]).each ->
            $el = $(@)
