 
         @_appendCustomStyle toggledRule, untoggledRule, "updatedMainColor"
 
+        this
+
     setSecondaryColor: (color) ->
         untoggledRule = ".segmented-option label { background-color: #{color}; }"
         toggledRule = ".segmented-option input:checked + label { color: #{color}; }"
 
         @_appendCustomStyle toggledRule, untoggledRule, "updatedSecondaryColor"
+
+        this
 
 
     _appendCustomStyle: (toggledRule, untoggledRule, type) ->

        console.log findSelector
        @segmentedControl.children(findSelector).remove()
        @_setSegmentMaxWidth()
        return


SegmentedControl.template = "<div class='segmented-control' data-control-name='NAME'></div>"


            $option.appendTo @segmentedControl
        else
            $option.insertAfter @segmentedControl.children(".segmented-option:nth-of-type(#{position - 1})")
        return this


    removeOptions: (options...) ->
