                 e.preventDefault()
 
             # delegate the click event for preventing default behavior
-            o.el.on "#{ o.click }.#{ pluginName }", ".#{ o.opts.holder.class } a", (e) ->
+            o.el.on "#{ o.click }.#{ pluginName }", ".#{ o.opts.holder.klass } a", (e) ->
                 e.preventDefault()
 
             # bind custom event named close to close or hide the dropdown

                    target    = $ e.target
                    wrapperId = o.dropdownWrapper.attr 'id'

                    if (not target.is(".#{ o.opts.holder.class }") and not target.is("##{ wrapperId }")) and
                        (target.parents(".#{ o.opts.holder.class }").length is 0 and target.parents("##{ wrapperId }").length is 0)
                            o.dropdownWrapper.trigger("hide.#{ pluginName }") 

            # bind resize event to the window

            filter     = o.el.children()
            selected   = null

            selected = if includeWrapper then filter.filter(":not(.#{ o.opts.holder.klass })") else filter

            selected.each ->
                totalWidth += ($ this).outerWidth(true)
