 
         $target
 
-window.Drop = drop
+window.Drop = Drop
 
 $.fn.drop = (options) ->
     if jQueryMethods[options]

        $target.drop 'positionDrop'

        $target
            .addClass(drop.baseClassNames.opened)
            .removeClass(drop.baseClassNames.closed)

        options.$drop
            .addClass(drop.baseClassNames.opened)
            .removeClass(drop.baseClassNames.closed)

        options.$drop.trigger
            type: 'openDrop'

    dropTargets: []

    positionAll: ->
        $.each Drop.dropTargets, (i, $target) ->
            if $target.drop 'isOpened'
                $target.drop 'positionDrop'

    updateBodyClasses: ->
        anyOpen = false

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

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

jQueryMethods =
    init: (opts) -> @each ->
        $target = $ @
        Drop.dropTargets.push $target

        options = $.extend {}, Drop.defaults, opts

        if options.attach and not (options.attachFirst or options.attachSecond)
            attachSplit = options.attach.split('-')
