           $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')
 


      if value == null || value == undefined || value == ''
        @selected.html("<span class='selection-placeholder'>#{@options.placeholder}</span>")
      else
        $item = @selector.find("li[data-item-value='#{value}']")
        $item.addClass(@options.selectedClass)


    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
