 
 
 ## mixin Aui.Mixin
-# Aui class is the main wrapper class
+# Aui.Mixin is the main wrapper around React Components
 # it recursively goes through all it's children,
 # finding props that === true or are on the `Aui.modules` list,
 # and merges them into the className of each element.
 AuiMixin =
+  $: (ref) -> jQuery React.findDOMNode @refs[ref] or ref
   componentWillMount: ->
-    @$ = (ref) -> jQuery? React.findDOMNode @refs[ref] or ref
     render = @render
     @render = ->
       element = render?.apply? @, arguments

    unless @ instanceof AuiOptions
      return new AuiOptions options
    options or= {}
    for own key, value of Aui.defaults
      @[key] = if options[key]? then options[key] else value

## element `Aui.classify(element, {options})`

    modules = null
    props = {}
    if element.props.className?
      for className in "#{element.props.className}".split /\s+/g
        classNames[key] = yes
    for own key, value of element.props
      classNames[key] = yes if value is yes
