           $tab = @selector.find("a[href='##{$tab_pane.attr('id')}']")
 
           unless ($tab.length && $tab.hasClass('active'))
-            @selector.find('.active').removeClass('.active')
+            @selector.find('.active').removeClass('active')
             $tab.addClass('active')
             $tab_pane.addClass('active')
 

      @panel.trigger 'change'
      true

    clear: -> @val(null) and false

  $.fn.extend effectivePanelSelect: (option, args...) ->
    retval = @each


    initEvents: ->
      @panel.on 'click', '.selection', (event) => @toggle()
      @panel.on 'click', '.selection-clear', (event) => @clear() and false
      @panel.on 'click', '[data-item-value]', (event) => @val($(event.currentTarget).data('item-value')) and false

    # Rest of these are commands
